[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 4 10:39:35 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.59 -> 1.60
---
Log message:
Fix a case where were incorrectly compiled cast from short to int on 64-bit
targets.
---
Diffs of the changes: (+4 -2)
LegalizeDAG.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.59 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.60
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.59 Tue Feb 1 21:44:41 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Feb 4 12:39:19 2005
@@ -1071,9 +1071,11 @@
Result = PromoteOp(Node->getOperand(0));
// The high bits are not guaranteed to be anything. Insert an extend.
if (Node->getOpcode() == ISD::SIGN_EXTEND)
- Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result, VT);
+ Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result,
+ Node->getOperand(0).getValueType());
else
- Result = DAG.getNode(ISD::ZERO_EXTEND_INREG, NVT, Result, VT);
+ Result = DAG.getNode(ISD::ZERO_EXTEND_INREG, NVT, Result,
+ Node->getOperand(0).getValueType());
break;
}
break;
More information about the llvm-commits
mailing list