summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterClassInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-11 18:34:58 +0000
committerEric Christopher <echristo@gmail.com>2015-03-11 18:34:58 +0000
commit4320495319466c12543985ff7e653aedf81f8f36 (patch)
tree9f4dedbe678ceeb422e0ce0e58a9ba72db47f850 /llvm/lib/CodeGen/RegisterClassInfo.cpp
parent7474dd92d3b8be5723fea9d5f13a61e6d94f4466 (diff)
downloadbcm5719-llvm-4320495319466c12543985ff7e653aedf81f8f36.tar.gz
bcm5719-llvm-4320495319466c12543985ff7e653aedf81f8f36.zip
Have getRegPressureSetLimit take a MachineFunction so that a
we can inspect the subtarget and function when computing values. llvm-svn: 231951
Diffstat (limited to 'llvm/lib/CodeGen/RegisterClassInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterClassInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterClassInfo.cpp b/llvm/lib/CodeGen/RegisterClassInfo.cpp
index 4e1ede8618f..178fa18ac5a 100644
--- a/llvm/lib/CodeGen/RegisterClassInfo.cpp
+++ b/llvm/lib/CodeGen/RegisterClassInfo.cpp
@@ -176,6 +176,6 @@ unsigned RegisterClassInfo::computePSetLimit(unsigned Idx) const {
}
compute(RC);
unsigned NReserved = RC->getNumRegs() - getNumAllocatableRegs(RC);
- return TRI->getRegPressureSetLimit(Idx)
- - TRI->getRegClassWeight(RC).RegWeight * NReserved;
+ return TRI->getRegPressureSetLimit(*MF, Idx) -
+ TRI->getRegClassWeight(RC).RegWeight * NReserved;
}
OpenPOWER on IntegriCloud