mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Fix PR1049 and CodeGen/Generic/2006-12-16-InlineAsmCrash.ll
by producing target constants instead of constants. Constants can get selected to li/movri instructions, which causes the scheduler to explode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4399,7 +4399,8 @@ SelectInlineAsmMemoryOperands(std::vector<SDOperand> &Ops, SelectionDAG &DAG) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add this to the output node.
|
// Add this to the output node.
|
||||||
Ops.push_back(DAG.getConstant(4/*MEM*/ | (SelOps.size() << 3), MVT::i32));
|
Ops.push_back(DAG.getTargetConstant(4/*MEM*/ | (SelOps.size() << 3),
|
||||||
|
MVT::i32));
|
||||||
Ops.insert(Ops.end(), SelOps.begin(), SelOps.end());
|
Ops.insert(Ops.end(), SelOps.begin(), SelOps.end());
|
||||||
i += 2;
|
i += 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user