mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
was ignoring the legalized chain in this case, fixed SPASS on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1469,7 +1469,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
// Expand to CopyFromReg if the target set
|
// Expand to CopyFromReg if the target set
|
||||||
// StackPointerRegisterToSaveRestore.
|
// StackPointerRegisterToSaveRestore.
|
||||||
if (unsigned SP = TLI.getStackPointerRegisterToSaveRestore()) {
|
if (unsigned SP = TLI.getStackPointerRegisterToSaveRestore()) {
|
||||||
Tmp1 = DAG.getCopyFromReg(Node->getOperand(0), SP,
|
Tmp1 = DAG.getCopyFromReg(Tmp1, SP,
|
||||||
Node->getValueType(0));
|
Node->getValueType(0));
|
||||||
AddLegalizedOperand(SDOperand(Node, 0), Tmp1);
|
AddLegalizedOperand(SDOperand(Node, 0), Tmp1);
|
||||||
AddLegalizedOperand(SDOperand(Node, 1), Tmp1.getValue(1));
|
AddLegalizedOperand(SDOperand(Node, 1), Tmp1.getValue(1));
|
||||||
|
Reference in New Issue
Block a user