diff options
author | Eric Christopher <echristo@gmail.com> | 2015-03-11 18:34:58 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-03-11 18:34:58 +0000 |
commit | 4320495319466c12543985ff7e653aedf81f8f36 (patch) | |
tree | 9f4dedbe678ceeb422e0ce0e58a9ba72db47f850 /llvm/lib/CodeGen/RegisterClassInfo.cpp | |
parent | 7474dd92d3b8be5723fea9d5f13a61e6d94f4466 (diff) | |
download | bcm5719-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.cpp | 4 |
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; } |