diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-13 03:42:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-13 03:42:31 +0000 |
commit | 99c86c72b2c01269e054eba043137e8609567f5a (patch) | |
tree | 050008f350284dad736e09277ad0a58bba131cdd /lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | dbaa2376f7b3c027e895ff4bee3ae08351f3ea88 (diff) | |
download | external_llvm-99c86c72b2c01269e054eba043137e8609567f5a.zip external_llvm-99c86c72b2c01269e054eba043137e8609567f5a.tar.gz external_llvm-99c86c72b2c01269e054eba043137e8609567f5a.tar.bz2 |
Missed these calls from the previous rename somehow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index b0fc82f..00807a3 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -2037,7 +2037,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { // Turn x&~y == 0 into x&y != 0 if x is a power of 2. Value *X = 0, *Y = 0; if (match(Op0, m_And(m_Value(X), m_Not(m_Value(Y)))) && - match(Op1, m_Zero()) && isPowerOfTwo(X, TD)) { + match(Op1, m_Zero()) && isKnownToBeAPowerOfTwo(X, TD)) { return new ICmpInst(ICmpInst::ICMP_NE, Builder->CreateAnd(X, Y), Op1); @@ -2083,7 +2083,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { // Turn x&~y != 0 into x&y == 0 if x is a power of 2. Value *X = 0, *Y = 0; if (match(Op0, m_And(m_Value(X), m_Not(m_Value(Y)))) && - match(Op1, m_Zero()) && isPowerOfTwo(X, TD)) { + match(Op1, m_Zero()) && isKnownToBeAPowerOfTwo(X, TD)) { return new ICmpInst(ICmpInst::ICMP_EQ, Builder->CreateAnd(X, Y), Op1); |