summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-28 20:34:50 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-28 20:34:50 +0000
commite172a8b7948d379400f6cf322589b9ba6f778e78 (patch)
treed9ad754ac4c5d9f382787e26e93d784d19f1ba38 /llvm/lib/CodeGen/SplitKit.h
parent1005cf323d6a8da48cac528de3a4d406df1b51a7 (diff)
downloadbcm5719-llvm-e172a8b7948d379400f6cf322589b9ba6f778e78.tar.gz
bcm5719-llvm-e172a8b7948d379400f6cf322589b9ba6f778e78.zip
Make MachineDominators available for SplitEditor. We are going to need it for
proper SSA updating. This doesn't cause MachineDominators to be recomputed since we are already requiring MachineLoopInfo which uses dominators as well. llvm-svn: 117598
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r--llvm/lib/CodeGen/SplitKit.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index 9c109dc4d5f..9ba7cbeb100 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -22,6 +22,7 @@ class LiveInterval;
class LiveIntervals;
class LiveRangeEdit;
class MachineInstr;
+class MachineDominatorTree;
class MachineLoop;
class MachineLoopInfo;
class MachineRegisterInfo;
@@ -154,6 +155,7 @@ public:
/// Values in parentli_ may map to any number of openli_ values, including 0.
class LiveIntervalMap {
LiveIntervals &lis_;
+ MachineDominatorTree &mdt_;
// The parent interval is never changed.
const LiveInterval &parentli_;
@@ -171,8 +173,9 @@ class LiveIntervalMap {
public:
LiveIntervalMap(LiveIntervals &lis,
+ MachineDominatorTree &mdt,
const LiveInterval &parentli)
- : lis_(lis), parentli_(parentli), li_(0) {}
+ : lis_(lis), mdt_(mdt), parentli_(parentli), li_(0) {}
/// reset - clear all data structures and start a new live interval.
void reset(LiveInterval *);
@@ -285,7 +288,8 @@ class SplitEditor {
public:
/// Create a new SplitEditor for editing the LiveInterval analyzed by SA.
/// Newly created intervals will be appended to newIntervals.
- SplitEditor(SplitAnalysis &SA, LiveIntervals&, VirtRegMap&, LiveRangeEdit&);
+ SplitEditor(SplitAnalysis &SA, LiveIntervals&, VirtRegMap&,
+ MachineDominatorTree&, LiveRangeEdit&);
/// getAnalysis - Get the corresponding analysis.
SplitAnalysis &getAnalysis() { return sa_; }
OpenPOWER on IntegriCloud