diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-06-05 17:49:45 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-06-05 17:49:45 +0000 |
commit | a6fbc82392160c7fc1a50851165cbcc27677d07f (patch) | |
tree | 5fc8e84749ff4823714d45f517938993e4b000d5 /llvm/lib/Transforms | |
parent | 54d7010627ca4b3a6f9ec1bb5311269388bf0442 (diff) | |
download | bcm5719-llvm-a6fbc82392160c7fc1a50851165cbcc27677d07f.tar.gz bcm5719-llvm-a6fbc82392160c7fc1a50851165cbcc27677d07f.zip |
[InstCombine] allow vector icmp bool transforms
llvm-svn: 271843
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 3dc44d14342..cb9c7e5b893 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -3188,7 +3188,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { Type *Ty = Op0->getType(); // icmp's with boolean values can always be turned into bitwise operations - if (Ty->isIntegerTy(1)) { + if (Ty->getScalarType()->isIntegerTy(1)) { switch (I.getPredicate()) { default: llvm_unreachable("Invalid icmp instruction!"); case ICmpInst::ICMP_EQ: { // icmp eq i1 A, B -> ~(A^B) |