[llvm-commits] [llvm] r170094 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Dec 12 19:42:31 PST 2012
Author: rafael
Date: Wed Dec 12 21:42:31 2012
New Revision: 170094
URL: http://llvm.org/viewvc/llvm-project?rev=170094&view=rev
Log:
Missed these calls from the previous rename somehow.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=170094&r1=170093&r2=170094&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Wed Dec 12 21:42:31 2012
@@ -2037,7 +2037,7 @@
// 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 @@
// 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);
More information about the llvm-commits
mailing list