diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-09 17:32:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-09 17:32:47 +0000 |
commit | 5e3c5b4e13d45d631cddf42176b380f64fde918f (patch) | |
tree | de824f9e7706e723926838778bdeca6acbd6268a /lib/CodeGen | |
parent | cbc09c8eaa1813eb4ad424c9215809322c6b5dd7 (diff) | |
download | external_llvm-5e3c5b4e13d45d631cddf42176b380f64fde918f.zip external_llvm-5e3c5b4e13d45d631cddf42176b380f64fde918f.tar.gz external_llvm-5e3c5b4e13d45d631cddf42176b380f64fde918f.tar.bz2 |
Teach legalize how to promote sext_inreg to fix a problem Andrew pointed
out to me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 41ba142..c667487 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2404,6 +2404,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) { } break; + case ISD::SIGN_EXTEND_INREG: + Result = PromoteOp(Node->getOperand(0)); + Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result, + Node->getOperand(1)); + break; case ISD::FP_TO_SINT: case ISD::FP_TO_UINT: switch (getTypeAction(Node->getOperand(0).getValueType())) { |