aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2021-02-17 13:32:26 -0800
committerMircea Trofin <mtrofin@google.com>2021-02-19 07:44:28 -0800
commit82492f24ffa74825cc7990aa7e06b6b0b8c32e81 (patch)
treeeb14d315f768bd7bf9f78104a78338290293c996 /llvm/lib/CodeGen/RegAllocBasic.cpp
parent3c297a256442fb8363e70ed80407018cded0fcd4 (diff)
downloadllvm-82492f24ffa74825cc7990aa7e06b6b0b8c32e81.zip
llvm-82492f24ffa74825cc7990aa7e06b6b0b8c32e81.tar.gz
llvm-82492f24ffa74825cc7990aa7e06b6b0b8c32e81.tar.bz2
[NFC][Regalloc] Share the VirtRegAuxInfo object with LiveRangeEdit
VirtRegAuxInfo is an extensibility point, so the register allocator's decision on which implementation to use should be communicated to the other users - namely, LiveRangeEdit. Differential Revision: https://reviews.llvm.org/D96898
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocBasic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp
index ae10b8e..f8de3e3 100644
--- a/llvm/lib/CodeGen/RegAllocBasic.cpp
+++ b/llvm/lib/CodeGen/RegAllocBasic.cpp
@@ -320,7 +320,7 @@ bool RABasic::runOnMachineFunction(MachineFunction &mf) {
getAnalysis<MachineBlockFrequencyInfo>());
VRAI.calculateSpillWeightsAndHints();
- SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM));
+ SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM, VRAI));
allocatePhysRegs();
postOptimization();