diff options
author | James Molloy <james.molloy@arm.com> | 2015-05-16 21:27:14 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-05-16 21:27:14 +0000 |
commit | e8698ae3e14a60258bb94c86c6441d4ee51fb57c (patch) | |
tree | 7eaa9c9914d5814fe2ebf5e61f08a731a274d4a3 /llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | fd30fb22c269de2e5aab5e0d0941e47d2131bab4 (diff) | |
download | llvm-e8698ae3e14a60258bb94c86c6441d4ee51fb57c.zip llvm-e8698ae3e14a60258bb94c86c6441d4ee51fb57c.tar.gz llvm-e8698ae3e14a60258bb94c86c6441d4ee51fb57c.tar.bz2 |
Revert commits r237521 and r237520.
The AArch64 LNT bot is unhappy - I've found that the problem is in
SimpliftDemandedBits, but that's going to require another code review
so reverting in the meantime.
llvm-svn: 237528
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 4827686..223bba0 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -3970,19 +3970,6 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) { } } - // Test if the FCmpInst instruction is used exclusively by a select as - // part of a minimum or maximum operation. If so, refrain from doing - // any other folding. This helps out other analyses which understand - // non-obfuscated minimum and maximum idioms, such as ScalarEvolution - // and CodeGen. And in this case, at least one of the comparison - // operands has at least one user besides the compare (the select), - // which would often largely negate the benefit of folding anyway. - if (I.hasOneUse()) - if (SelectInst *SI = dyn_cast<SelectInst>(*I.user_begin())) - if ((SI->getOperand(1) == Op0 && SI->getOperand(2) == Op1) || - (SI->getOperand(2) == Op0 && SI->getOperand(1) == Op1)) - return nullptr; - // Handle fcmp with constant RHS if (Constant *RHSC = dyn_cast<Constant>(Op1)) { if (Instruction *LHSI = dyn_cast<Instruction>(Op0)) |