mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Factor the addressing mode and the load/store VT out of LoadSDNode
and StoreSDNode into their common base class LSBaseSDNode. Member functions getLoadedVT and getStoredVT are replaced with the common getMemoryVT to simplify code that will handle both loads and stores. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -842,7 +842,7 @@ bool TargetLowering::SimplifyDemandedBits(SDOperand Op, uint64_t DemandedMask,
|
||||
case ISD::LOAD: {
|
||||
if (ISD::isZEXTLoad(Op.Val)) {
|
||||
LoadSDNode *LD = cast<LoadSDNode>(Op);
|
||||
MVT::ValueType VT = LD->getLoadedVT();
|
||||
MVT::ValueType VT = LD->getMemoryVT();
|
||||
KnownZero |= ~MVT::getIntVTBitMask(VT) & DemandedMask;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user