summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchRelaxation.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-05-25 23:39:33 +0000
committerMatthias Braun <matze@braunis.de>2017-05-25 23:39:33 +0000
commit9512dd5ffdd2d3f446065660d030303a669e8b58 (patch)
treebfa513093f1c2de4dd5503f05f3a762bb0fbefe0 /llvm/lib/CodeGen/BranchRelaxation.cpp
parentea96891fb42866d099188d014169ab147217d4ef (diff)
downloadbcm5719-llvm-9512dd5ffdd2d3f446065660d030303a669e8b58.tar.gz
bcm5719-llvm-9512dd5ffdd2d3f446065660d030303a669e8b58.zip
LivePhysRegs: Skip reserved regs in computeLiveIns; NFCI
We do not track liveness of reserved registers so adding them to the liveins list in computeLiveIns() was completely unnecessary. llvm-svn: 303937
Diffstat (limited to 'llvm/lib/CodeGen/BranchRelaxation.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchRelaxation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchRelaxation.cpp b/llvm/lib/CodeGen/BranchRelaxation.cpp
index 7af13694166..feaabb44c07 100644
--- a/llvm/lib/CodeGen/BranchRelaxation.cpp
+++ b/llvm/lib/CodeGen/BranchRelaxation.cpp
@@ -259,7 +259,7 @@ MachineBasicBlock *BranchRelaxation::splitBlockBeforeInstr(MachineInstr &MI,
// Need to fix live-in lists if we track liveness.
if (TRI->trackLivenessAfterRegAlloc(*MF))
- computeLiveIns(LiveRegs, *TRI, *NewBB);
+ computeLiveIns(LiveRegs, MF->getRegInfo(), *NewBB);
++NumSplit;
OpenPOWER on IntegriCloud