Thinking about it, we don't need MachineDominatorTree after all. The DomValue
map discovers the iterated dominance frontier for free.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111400 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index 622d7e7..ddef746 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -20,7 +20,6 @@
class LiveInterval;
class LiveIntervals;
-class MachineDominatorTree;
class MachineInstr;
class MachineLoop;
class MachineLoopInfo;
@@ -147,7 +146,6 @@
/// Values in parentli_ may map to any number of openli_ values, including 0.
class LiveIntervalMap {
LiveIntervals &lis_;
- MachineDominatorTree &dt_;
// The parent interval is never changed.
const LiveInterval &parentli_;
@@ -174,10 +172,9 @@
public:
LiveIntervalMap(LiveIntervals &lis,
- MachineDominatorTree &dt,
const LiveInterval &parentli,
LiveInterval &li)
- : lis_(lis), dt_(dt), parentli_(parentli), li_(li) {}
+ : lis_(lis), parentli_(parentli), li_(li) {}
/// defValue - define a value in li_ from the parentli_ value VNI and Idx.
/// Idx does not have to be ParentVNI->def, but it must be contained within