[PATCH] D48330: [GVN] Avoid casting a vector of size less than 8 bits to i8

Matthew Voss via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 10:25:52 PDT 2018


ormris added a comment.

@efriedma I'm not quite sure what that would look like here. Are you looking for something like the following?

  %a = alloca <7 x i1>, align 2
  store <7 x i1> undef, <7 x i1>* %a, align 2
  %0 = getelementptr inbounds <7 x i1>, <7 x i1>* %a, i64 0, i64 0
  %val0 = load i1, i1* %0, align 2
  %val1 = load i1, i1* %0, align 2
  br i1 %val0, label %cond.true, label %cond.false


Repository:
  rL LLVM

https://reviews.llvm.org/D48330





More information about the llvm-commits mailing list