[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGISel.h
Nate Begeman
natebegeman at mac.com
Sat Apr 22 23:26:32 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAGISel.h updated: 1.13 -> 1.14
---
Log message:
Fix the updating of the machine CFG when a PHI node was in a successor of
the jump table's range check block. This re-enables 100% dense jump tables
by default on PPC & x86
---
Diffs of the changes: (+6 -3)
SelectionDAGISel.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/CodeGen/SelectionDAGISel.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.13 llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.14
--- llvm/include/llvm/CodeGen/SelectionDAGISel.h:1.13 Sat Apr 22 13:53:45 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGISel.h Sun Apr 23 01:26:20 2006
@@ -41,7 +41,7 @@
SelectionDAG *CurDAG;
MachineBasicBlock *BB;
- SelectionDAGISel(TargetLowering &tli) : TLI(tli), JT(0,0,0) {}
+ SelectionDAGISel(TargetLowering &tli) : TLI(tli), JT(0,0,0,0) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
@@ -89,8 +89,8 @@
MachineBasicBlock *ThisBB;
};
struct JumpTable {
- JumpTable(unsigned R, unsigned J, MachineBasicBlock *me) : Reg(R), JTI(J),
- MBB(me) {}
+ JumpTable(unsigned R, unsigned J, MachineBasicBlock *M,
+ MachineBasicBlock *D) : Reg(R), JTI(J), MBB(M), Default(D) {}
// Reg - the virtual register containing the index of the jump table entry
// to jump to.
unsigned Reg;
@@ -98,6 +98,9 @@
unsigned JTI;
// MBB - the MBB into which to emit the code for the indirect jump.
MachineBasicBlock *MBB;
+ // Default - the MBB of the default bb, which is a successor of the range
+ // check MBB. This is when updating PHI nodes in successors.
+ MachineBasicBlock *Default;
// SuccMBBs - a vector of unique successor MBBs used for updating CFG info
// and PHI nodes.
std::set<MachineBasicBlock*> SuccMBBs;
More information about the llvm-commits
mailing list