summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CalcSpillWeights.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:14:29 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:14:29 +0000
commitbe8f8c4478dee41e124650fa9d166eaf5dc6b2be (patch)
treeb53b248f768f9dbaf37d7824b865b9cffd394d5f /llvm/lib/CodeGen/CalcSpillWeights.cpp
parentfd8cc23220d25dfe6956470da8bd63d26649c428 (diff)
downloadbcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.tar.gz
bcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.zip
CodeGen: Update LiveIntervalAnalysis API to use MachineInstr&, NFC
These parameters aren't expected to be null, so take them by reference. llvm-svn: 262151
Diffstat (limited to 'llvm/lib/CodeGen/CalcSpillWeights.cpp')
-rw-r--r--llvm/lib/CodeGen/CalcSpillWeights.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CalcSpillWeights.cpp b/llvm/lib/CodeGen/CalcSpillWeights.cpp
index 4877f009cdb..f24d8eaffbc 100644
--- a/llvm/lib/CodeGen/CalcSpillWeights.cpp
+++ b/llvm/lib/CodeGen/CalcSpillWeights.cpp
@@ -170,8 +170,7 @@ VirtRegAuxInfo::calculateSpillWeightAndHint(LiveInterval &li) {
// Calculate instr weight.
bool reads, writes;
std::tie(reads, writes) = mi->readsWritesVirtualRegister(li.reg);
- weight = LiveIntervals::getSpillWeight(
- writes, reads, &MBFI, mi);
+ weight = LiveIntervals::getSpillWeight(writes, reads, &MBFI, *mi);
// Give extra weight to what looks like a loop induction variable update.
if (writes && isExiting && LIS.isLiveOutOfMBB(li, mbb))
OpenPOWER on IntegriCloud