[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 15 13:24:18 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.199 -> 1.200
---
Log message:
Use getExtLoad here instead of getNode, as extloads produce two values. This
fixes a legalize failure on SPASS for itanium.
---
Diffs of the changes: (+3 -2)
LegalizeDAG.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.199 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.200
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.199 Thu Oct 13 20:12:21 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sat Oct 15 15:24:07 2005
@@ -2355,8 +2355,9 @@
case ISD::EXTLOAD:
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
Tmp2 = LegalizeOp(Node->getOperand(1)); // Legalize the pointer.
- Result = DAG.getNode(Node->getOpcode(), NVT, Tmp1, Tmp2,
- Node->getOperand(2), Node->getOperand(3));
+ Result = DAG.getExtLoad(Node->getOpcode(), NVT, Tmp1, Tmp2,
+ Node->getOperand(2),
+ cast<VTSDNode>(Node->getOperand(3))->getVT());
// Remember that we legalized the chain.
AddLegalizedOperand(Op.getValue(1), Result.getValue(1));
break;
More information about the llvm-commits
mailing list