diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-16 21:14:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-16 21:14:48 +0000 |
| commit | 9bd5ed636c4a6583d644d0323d65e5bee8de5269 (patch) | |
| tree | ed1f598ccaceb5177408f038a299c5976c77c1a7 /llvm/lib/CodeGen | |
| parent | 5ffb07839d4e21bd52f9b8e64a1d332918525128 (diff) | |
| download | bcm5719-llvm-9bd5ed636c4a6583d644d0323d65e5bee8de5269.tar.gz bcm5719-llvm-9bd5ed636c4a6583d644d0323d65e5bee8de5269.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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; } |

