mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Use the correct value for InSignBit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -892,7 +892,7 @@ bool TargetLowering::SimplifyDemandedBits(SDOperand Op,
|
||||
MVT::ValueType InVT = Op.getOperand(0).getValueType();
|
||||
unsigned InBits = MVT::getSizeInBits(InVT);
|
||||
APInt InMask = APInt::getLowBitsSet(BitWidth, InBits);
|
||||
APInt InSignBit = APInt::getLowBitsSet(BitWidth, InBits);
|
||||
APInt InSignBit = APInt::getBitsSet(BitWidth, InBits - 1, InBits);
|
||||
APInt NewBits = ~InMask & NewMask;
|
||||
|
||||
// If none of the top bits are demanded, convert this into an any_extend.
|
||||
|
||||
Reference in New Issue
Block a user