[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 10 10:40:51 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.78 -> 1.79
---
Log message:
don't zextload fp values!
---
Diffs of the changes: (+4 -1)
LegalizeDAG.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.78 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.79
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.78 Sat Apr 9 23:33:47 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun Apr 10 12:40:35 2005
@@ -1356,7 +1356,10 @@
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
Tmp2 = LegalizeOp(Node->getOperand(1)); // Legalize the pointer.
// FIXME: When the DAG combiner exists, change this to use EXTLOAD!
- Result = DAG.getNode(ISD::ZEXTLOAD, NVT, Tmp1, Tmp2, VT);
+ if (MVT::isInteger(NVT))
+ Result = DAG.getNode(ISD::ZEXTLOAD, NVT, Tmp1, Tmp2, VT);
+ else
+ Result = DAG.getNode(ISD::EXTLOAD, NVT, Tmp1, Tmp2, VT);
// Remember that we legalized the chain.
AddLegalizedOperand(Op.getValue(1), Result.getValue(1));
More information about the llvm-commits
mailing list