From 9bd5ed636c4a6583d644d0323d65e5bee8de5269 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 16 Dec 2006 21:14:48 +0000 Subject: 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 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ff7414ae36f..ca9c8c75462 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4399,7 +4399,8 @@ SelectInlineAsmMemoryOperands(std::vector &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; } -- cgit v1.2.3