mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Rework the SelectionDAG-based implementations of SimplifyDemandedBits
and ComputeMaskedBits to match the new improved versions in instcombine. Tested against all of multisource/benchmarks on ppc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -767,9 +767,9 @@ bool InstCombiner::SimplifyDemandedBits(Value *V, uint64_t DemandedMask,
|
||||
if ((DemandedMask & (~KnownZero) & KnownOne2) ==
|
||||
(DemandedMask & (~KnownZero)))
|
||||
return UpdateValueUsesWith(I, I->getOperand(0));
|
||||
if ((DemandedMask & (~KnownZero2) & KnownOne) ==
|
||||
(DemandedMask & (~KnownZero2)))
|
||||
return UpdateValueUsesWith(I, I->getOperand(1));
|
||||
if ((DemandedMask & (~KnownZero2) & KnownOne) ==
|
||||
(DemandedMask & (~KnownZero2)))
|
||||
return UpdateValueUsesWith(I, I->getOperand(1));
|
||||
|
||||
// If the RHS is a constant, see if we can simplify it.
|
||||
if (ShrinkDemandedConstant(I, 1, DemandedMask))
|
||||
|
Reference in New Issue
Block a user