mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Use StoreSDNode::getValue instead of calling getOperand directly
with a hard-coded operand number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab1a0354ec
commit
21be3849ae
@ -2344,14 +2344,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
MVT::ValueType TVT = MVT::getVectorType(EVT, NumElems);
|
MVT::ValueType TVT = MVT::getVectorType(EVT, NumElems);
|
||||||
if (TLI.isTypeLegal(TVT)) {
|
if (TLI.isTypeLegal(TVT)) {
|
||||||
// Turn this into a normal store of the vector type.
|
// Turn this into a normal store of the vector type.
|
||||||
Tmp3 = LegalizeOp(Node->getOperand(1));
|
Tmp3 = LegalizeOp(ST->getValue());
|
||||||
Result = DAG.getStore(Tmp1, Tmp3, Tmp2, ST->getSrcValue(),
|
Result = DAG.getStore(Tmp1, Tmp3, Tmp2, ST->getSrcValue(),
|
||||||
SVOffset, isVolatile, Alignment);
|
SVOffset, isVolatile, Alignment);
|
||||||
Result = LegalizeOp(Result);
|
Result = LegalizeOp(Result);
|
||||||
break;
|
break;
|
||||||
} else if (NumElems == 1) {
|
} else if (NumElems == 1) {
|
||||||
// Turn this into a normal store of the scalar type.
|
// Turn this into a normal store of the scalar type.
|
||||||
Tmp3 = ScalarizeVectorOp(Node->getOperand(1));
|
Tmp3 = ScalarizeVectorOp(ST->getValue());
|
||||||
Result = DAG.getStore(Tmp1, Tmp3, Tmp2, ST->getSrcValue(),
|
Result = DAG.getStore(Tmp1, Tmp3, Tmp2, ST->getSrcValue(),
|
||||||
SVOffset, isVolatile, Alignment);
|
SVOffset, isVolatile, Alignment);
|
||||||
// The scalarized value type may not be legal, e.g. it might require
|
// The scalarized value type may not be legal, e.g. it might require
|
||||||
@ -2359,12 +2359,12 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
Result = LegalizeOp(Result);
|
Result = LegalizeOp(Result);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
SplitVectorOp(Node->getOperand(1), Lo, Hi);
|
SplitVectorOp(ST->getValue(), Lo, Hi);
|
||||||
IncrementSize = MVT::getVectorNumElements(Lo.Val->getValueType(0)) *
|
IncrementSize = MVT::getVectorNumElements(Lo.Val->getValueType(0)) *
|
||||||
MVT::getSizeInBits(EVT)/8;
|
MVT::getSizeInBits(EVT)/8;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ExpandOp(Node->getOperand(1), Lo, Hi);
|
ExpandOp(ST->getValue(), Lo, Hi);
|
||||||
IncrementSize = Hi.Val ? MVT::getSizeInBits(Hi.getValueType())/8 : 0;
|
IncrementSize = Hi.Val ? MVT::getSizeInBits(Hi.getValueType())/8 : 0;
|
||||||
|
|
||||||
if (TLI.isBigEndian())
|
if (TLI.isBigEndian())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user