From a1bbeeca72f0d9db2a3ea72f2b72063f20e8bf95 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 13 Dec 2012 06:48:05 +0000 Subject: 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. llvm-svn: 170106 --- llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/Transforms/InstCombine') diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp index 01a3c48635a..c22249527b9 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/llvm/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)) -- cgit v1.2.3