summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-10 18:58:34 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-10 18:58:34 +0000
commit6ef7da0197735a16aa534e9e2c80709d3d6e8c56 (patch)
treef4ecf00513f7e55c9e44e819d6c336191fb38ee2 /lib/CodeGen/RegAllocGreedy.cpp
parent3bf7a1cc3c090e766b8912c6a14c3e2ec5dde7f8 (diff)
downloadllvm-6ef7da0197735a16aa534e9e2c80709d3d6e8c56.tar.gz
llvm-6ef7da0197735a16aa534e9e2c80709d3d6e8c56.tar.bz2
llvm-6ef7da0197735a16aa534e9e2c80709d3d6e8c56.tar.xz
Add register mask support to InterferenceCache.
This makes global live range splitting behave identically with and without register mask operands. This is not necessarily the best way of using register masks for live range splitting. It would be more efficient to first split global live ranges around calls (i.e., register masks), and reserve the fine grained per-physreg interference guidance for global live ranges that do not cross calls. For now the goal is to produce identical assembly when enabling register masks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index e003f32ff5..0ac31a5792 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -1644,7 +1644,7 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
ExtraRegInfo.clear();
ExtraRegInfo.resize(MRI->getNumVirtRegs());
NextCascade = 1;
- IntfCache.init(MF, &getLiveUnion(0), Indexes, TRI);
+ IntfCache.init(MF, &getLiveUnion(0), Indexes, LIS, TRI);
GlobalCand.resize(32); // This will grow as needed.
allocatePhysRegs();