mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237528 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user