diff options
| author | Eric Christopher <echristo@gmail.com> | 2012-12-13 06:48:05 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2012-12-13 06:48:05 +0000 |
| commit | a1bbeeca72f0d9db2a3ea72f2b72063f20e8bf95 (patch) | |
| tree | 084acb86fe9d6c674cff8465b831225df0216379 | |
| parent | c859c2912f4dd341a4c32c397663692a8a8167ba (diff) | |
| download | bcm5719-llvm-a1bbeeca72f0d9db2a3ea72f2b72063f20e8bf95.tar.gz bcm5719-llvm-a1bbeeca72f0d9db2a3ea72f2b72063f20e8bf95.zip | |
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
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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<PHINode>(LHS)) - if (Instruction *NV = FoldOpIntoPhi(I)) - return NV; - // -A + B --> B - A // -A + -B --> -(A + B) if (Value *LHSV = dyn_castFNegVal(LHS)) |

