[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 21 12:56:16 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.10 -> 1.11
---
Log message:
Add support for frame index nodes
---
Diffs of the changes: (+4 -3)
ScheduleDAG.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.10 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.11
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.10 Sun Aug 21 13:49:29 2005
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Sun Aug 21 14:56:04 2005
@@ -121,6 +121,9 @@
} else if (BasicBlockSDNode *BB =
dyn_cast<BasicBlockSDNode>(Op.getOperand(i))) {
MI->addMachineBasicBlockOperand(BB->getBasicBlock());
+ } else if (FrameIndexSDNode *FI =
+ dyn_cast<FrameIndexSDNode>(Op.getOperand(i))) {
+ MI->addFrameIndexOperand(FI->getIndex());
} else {
unsigned R = Emit(Op.getOperand(i));
// Add an operand, unless this corresponds to a chain node.
@@ -136,9 +139,7 @@
default:
Op.Val->dump();
assert(0 && "This target-independent node should have been selected!");
- case ISD::EntryToken:
- case ISD::BasicBlock:
- break;
+ case ISD::EntryToken: break;
case ISD::TokenFactor:
for (unsigned i = 0, e = Op.getNumOperands(); i != e; ++i)
Emit(Op.getOperand(i));
More information about the llvm-commits
mailing list