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
This commit is contained in:
Eric Christopher 2012-12-13 06:48:05 +00:00
parent c859c2912f
commit a1bbeeca72
1 changed files with 0 additions and 4 deletions

View File

@ -354,10 +354,6 @@ Instruction *InstCombiner::visitFAdd(BinaryOperator &I) {
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))