diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-01 19:42:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-01 19:42:59 +0000 |
commit | 7aa2d4747a5237e47511f9e35c12356c4f40445d (patch) | |
tree | a2982ae7c060c99e0b1ff26125868905dbf0ab91 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 4d7af1c680ad23886361d9f0ba8ee517ff39dd00 (diff) | |
download | bcm5719-llvm-7aa2d4747a5237e47511f9e35c12356c4f40445d.tar.gz bcm5719-llvm-7aa2d4747a5237e47511f9e35c12356c4f40445d.zip |
Fix a regression in InstCombine/xor.ll
llvm-svn: 15410
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index b39f077d025..747abc2f5bb 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -1343,11 +1343,11 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) { return ReplaceInstUsesWith(I, Op0I->getOperand(0)); } - // (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1^C2 == 0 + // (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0 Value *A, *B; ConstantInt *C1, *C2; if (match(Op0, m_And(m_Value(A), m_ConstantInt(C1))) && match(Op1, m_And(m_Value(B), m_ConstantInt(C2))) && - ConstantExpr::getXor(C1, C2)->isNullValue()) + ConstantExpr::getAnd(C1, C2)->isNullValue()) return BinaryOperator::createOr(Op0, Op1); // (setcc1 A, B) ^ (setcc2 A, B) --> (setcc3 A, B) |