diff options
author | Chris Lattner <sabre@nondot.org> | 2003-03-10 19:20:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-03-10 19:20:30 +0000 |
commit | 3695257724a8db97b942a6f5c606eb40b11161bb (patch) | |
tree | 86edf01a766ce24c61fc611ffc13c07e0175da77 /llvm/lib/Transforms | |
parent | d97f0544e96b04b7bcabbb57ec42ef153865615f (diff) | |
download | bcm5719-llvm-3695257724a8db97b942a6f5c606eb40b11161bb.tar.gz bcm5719-llvm-3695257724a8db97b942a6f5c606eb40b11161bb.zip |
Minor change, no functionality diff
llvm-svn: 5731
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 041122401ce..709c6a91129 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -510,11 +510,11 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) { if (Op0I->getOpcode() == Instruction::Or && Op0I->use_size() == 1) { if (Op0I->getOperand(0) == Op1) // (B|A)^B == (A|B)^B cast<BinaryOperator>(Op0I)->swapOperands(); - if (Op0I->getOperand(1) == Op1) { // (A|B)^B == A & ~B + if (Op0I->getOperand(1) == Op1) { // (A|B)^B == ~B & A Value *NotB = BinaryOperator::createNot(Op1, Op1->getName()+".not", &I); WorkList.push_back(cast<Instruction>(NotB)); - return BinaryOperator::create(Instruction::And, Op0I->getOperand(0), - NotB); + return BinaryOperator::create(Instruction::And, NotB, + Op0I->getOperand(0)); } } |