[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 13 13:07:53 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.196 -> 1.197
---
Log message:
Implement PromoteOp for *EXTLOAD, allowing MallocBench/gs to Legalize
---
Diffs of the changes: (+10 -0)
LegalizeDAG.cpp | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.196 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.197
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.196 Thu Oct 13 12:15:37 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Oct 13 15:07:41 2005
@@ -2350,6 +2350,16 @@
// Remember that we legalized the chain.
AddLegalizedOperand(Op.getValue(1), Result.getValue(1));
break;
+ case ISD::SEXTLOAD:
+ case ISD::ZEXTLOAD:
+ 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));
+ // Remember that we legalized the chain.
+ AddLegalizedOperand(Op.getValue(1), Result.getValue(1));
+ break;
case ISD::SELECT:
switch (getTypeAction(Node->getOperand(0).getValueType())) {
case Expand: assert(0 && "It's impossible to expand bools");
More information about the llvm-commits
mailing list