File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -786,15 +786,6 @@ Instruction *InstCombinerImpl::visitTrunc(TruncInst &Trunc) {
786
786
}
787
787
}
788
788
789
- // Test if the trunc is the user of a select which is part of a
790
- // minimum or maximum operation. If so, don't do any more simplification.
791
- // Even simplifying demanded bits can break the canonical form of a
792
- // min/max.
793
- Value *LHS, *RHS;
794
- if (SelectInst *Sel = dyn_cast<SelectInst>(Src))
795
- if (matchSelectPattern (Sel, LHS, RHS).Flavor != SPF_UNKNOWN)
796
- return nullptr ;
797
-
798
789
// See if we can simplify any instructions used by the input whose sole
799
790
// purpose is to compute bits we don't care about.
800
791
if (SimplifyDemandedInstructionBits (Trunc))
You can’t perform that action at this time.
0 commit comments