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.

llvm-svn: 32633
This commit is contained in:
Chris Lattner 2006-12-16 21:14:48 +00:00
parent 5ffb07839d
commit 9bd5ed636c
1 changed files with 2 additions and 1 deletions

View File

@ -4399,7 +4399,8 @@ SelectInlineAsmMemoryOperands(std::vector<SDOperand> &Ops, SelectionDAG &DAG) {
}
// 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());
i += 2;
}