From: Eric Christopher Date: Thu, 13 Dec 2012 06:48:05 +0000 (+0000) Subject: Revert "Restore the PHI optimization I accidently removed" temporarily since X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dcb024d27c1e303959005d64b4ae70d695fd0564;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170106 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index 01a3c48635a..c22249527b9 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -354,10 +354,6 @@ Instruction *InstCombiner::visitFAdd(BinaryOperator &I) { if (Value *V = SimplifyFAddInst(LHS, RHS, I.getFastMathFlags(), TD)) return ReplaceInstUsesWith(I, V); - if (isa(LHS)) - if (Instruction *NV = FoldOpIntoPhi(I)) - return NV; - // -A + B --> B - A // -A + -B --> -(A + B) if (Value *LHSV = dyn_castFNegVal(LHS))