mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Add contexts to some of the MVT APIs. No functionality change yet, just the infrastructure work needed to get the contexts to where they need to be first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -373,7 +373,7 @@ LowerLOAD(SDValue Op, SelectionDAG &DAG)
|
||||
return SDValue();
|
||||
}
|
||||
unsigned ABIAlignment = getTargetData()->
|
||||
getABITypeAlignment(LD->getMemoryVT().getTypeForEVT());
|
||||
getABITypeAlignment(LD->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
||||
// Leave aligned load alone.
|
||||
if (LD->getAlignment() >= ABIAlignment) {
|
||||
return SDValue();
|
||||
@@ -469,7 +469,7 @@ LowerSTORE(SDValue Op, SelectionDAG &DAG)
|
||||
return SDValue();
|
||||
}
|
||||
unsigned ABIAlignment = getTargetData()->
|
||||
getABITypeAlignment(ST->getMemoryVT().getTypeForEVT());
|
||||
getABITypeAlignment(ST->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
||||
// Leave aligned store alone.
|
||||
if (ST->getAlignment() >= ABIAlignment) {
|
||||
return SDValue();
|
||||
@@ -1058,8 +1058,8 @@ SDValue XCoreTargetLowering::PerformDAGCombine(SDNode *N,
|
||||
if (StoreBits % 8) {
|
||||
break;
|
||||
}
|
||||
unsigned ABIAlignment = getTargetData()->
|
||||
getABITypeAlignment(ST->getMemoryVT().getTypeForEVT());
|
||||
unsigned ABIAlignment = getTargetData()->getABITypeAlignment(
|
||||
ST->getMemoryVT().getTypeForEVT(*DCI.DAG.getContext()));
|
||||
unsigned Alignment = ST->getAlignment();
|
||||
if (Alignment >= ABIAlignment) {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user