diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-14 20:06:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-14 20:06:27 +0000 |
commit | fc3b6f3a4d54e4243f909cc0caafdc13b94fed93 (patch) | |
tree | e3ee737888b3d888fc7e994d8ba4d7b5c4c746e5 /lib/Transforms/InstCombine/InstCombineSelect.cpp | |
parent | 494b8934d00de85da89e2e84c616bff171483f2f (diff) |
--- Merging r127464 into '.':
U test/Transforms/InstCombine/select.ll
U lib/Transforms/InstCombine/InstCombineSelect.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineSelect.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineSelect.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineSelect.cpp b/lib/Transforms/InstCombine/InstCombineSelect.cpp index 97abc769ae..8b9261b8fe 100644 --- a/lib/Transforms/InstCombine/InstCombineSelect.cpp +++ b/lib/Transforms/InstCombine/InstCombineSelect.cpp @@ -503,9 +503,8 @@ static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, if (!IC || !IC->isEquality()) return 0; - if (ConstantInt *C = dyn_cast<ConstantInt>(IC->getOperand(1))) - if (!C->isZero()) - return 0; + if (!match(IC->getOperand(1), m_Zero())) + return 0; ConstantInt *AndRHS; Value *LHS = IC->getOperand(0); |