[llvm-branch-commits] [llvm-branch] r93371 - in /llvm/branches/Apple/Zoidberg: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/fsub-fadd.ll
Bill Wendling
isanbard at gmail.com
Wed Jan 13 15:26:26 PST 2010
Author: void
Date: Wed Jan 13 17:26:26 2010
New Revision: 93371
URL: http://llvm.org/viewvc/llvm-project?rev=93371&view=rev
Log:
$ svn merge -c 93369 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r93369 into '.':
A test/Transforms/InstCombine/fsub-fadd.ll
U lib/Transforms/Scalar/InstructionCombining.cpp
Added:
llvm/branches/Apple/Zoidberg/test/Transforms/InstCombine/fsub-fadd.ll
- copied unchanged from r93369, llvm/trunk/test/Transforms/InstCombine/fsub-fadd.ll
Modified:
llvm/branches/Apple/Zoidberg/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/branches/Apple/Zoidberg/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/Transforms/Scalar/InstructionCombining.cpp?rev=93371&r1=93370&r2=93371&view=diff
==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/Transforms/Scalar/InstructionCombining.cpp Wed Jan 13 17:26:26 2010
@@ -2912,17 +2912,6 @@
if (Value *V = dyn_castFNegVal(Op1))
return BinaryOperator::CreateFAdd(Op0, V);
- if (BinaryOperator *Op1I = dyn_cast<BinaryOperator>(Op1)) {
- if (Op1I->getOpcode() == Instruction::FAdd) {
- if (Op1I->getOperand(0) == Op0) // X-(X+Y) == -Y
- return BinaryOperator::CreateFNeg(Op1I->getOperand(1),
- I.getName());
- else if (Op1I->getOperand(1) == Op0) // X-(Y+X) == -Y
- return BinaryOperator::CreateFNeg(Op1I->getOperand(0),
- I.getName());
- }
- }
-
return 0;
}
More information about the llvm-branch-commits
mailing list