[llvm-commits] [llvm] r170106 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Eric Christopher
echristo at gmail.com
Wed Dec 12 22:48:05 PST 2012
Author: echristo
Date: Thu Dec 13 00:48:05 2012
New Revision: 170106
URL: http://llvm.org/viewvc/llvm-project?rev=170106&view=rev
Log:
Revert "Restore the PHI optimization I accidently removed" temporarily since
it seems to be breaking self-host for a few people and is PR14592.
This reverts commit r170024.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp?rev=170106&r1=170105&r2=170106&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp Thu Dec 13 00:48:05 2012
@@ -354,10 +354,6 @@
if (Value *V = SimplifyFAddInst(LHS, RHS, I.getFastMathFlags(), TD))
return ReplaceInstUsesWith(I, V);
- if (isa<PHINode>(LHS))
- if (Instruction *NV = FoldOpIntoPhi(I))
- return NV;
-
// -A + B --> B - A
// -A + -B --> -(A + B)
if (Value *LHSV = dyn_castFNegVal(LHS))
More information about the llvm-commits
mailing list