summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-05-16 21:27:14 +0000
committerJames Molloy <james.molloy@arm.com>2015-05-16 21:27:14 +0000
commite8698ae3e14a60258bb94c86c6441d4ee51fb57c (patch)
tree7eaa9c9914d5814fe2ebf5e61f08a731a274d4a3 /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parentfd30fb22c269de2e5aab5e0d0941e47d2131bab4 (diff)
downloadbcm5719-llvm-e8698ae3e14a60258bb94c86c6441d4ee51fb57c.tar.gz
bcm5719-llvm-e8698ae3e14a60258bb94c86c6441d4ee51fb57c.zip
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/InstCombineCasts.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index 48ab0eb2c1b..9c2bc34f678 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -435,15 +435,6 @@ Instruction *InstCombiner::visitTrunc(TruncInst &CI) {
if (Instruction *Result = commonCastTransforms(CI))
return Result;
- // Test if the trunc is the user of a select which is part of a
- // minimum or maximum operation. If so, don't do any more simplification.
- // Even simplifying demanded bits can break the canonical form of a
- // min/max.
- Value *LHS, *RHS;
- if (SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0)))
- if (matchSelectPattern(SI, LHS, RHS) != SPF_UNKNOWN)
- return nullptr;
-
// See if we can simplify any instructions used by the input whose sole
// purpose is to compute bits we don't care about.
if (SimplifyDemandedInstructionBits(CI))
OpenPOWER on IntegriCloud