diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2019-10-14 23:55:39 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2019-10-14 23:55:39 +0000 |
| commit | 4335d8f0e8349025530da72a6881ed53c61947a2 (patch) | |
| tree | 37f50c6fb3fd2b299a74db15a003b84e24f109bb /llvm/lib | |
| parent | b7a3353061e965f901ba5cfac366263d6d528f35 (diff) | |
| download | bcm5719-llvm-4335d8f0e8349025530da72a6881ed53c61947a2.tar.gz bcm5719-llvm-4335d8f0e8349025530da72a6881ed53c61947a2.zip | |
Revert [InstCombine] fold a shifted bool zext to a select
This reverts r374828 (git commit 1f40f15d54aac06421448b6de131231d2d78bc75) due to bot breakage
llvm-svn: 374851
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp index 9187c70fb84..ca1885a6128 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp @@ -934,12 +934,6 @@ Instruction *InstCombiner::visitShl(BinaryOperator &I) { return BinaryOperator::CreateLShr( ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); - // shl (zext (i1 X)), C1 --> select (X, 1 << C1, 0) - if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { - auto *NewC = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C1); - return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); - } - return nullptr; } |

