diff options
author | Andrew Trick <atrick@apple.com> | 2013-10-14 22:18:59 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-10-14 22:18:59 +0000 |
commit | 966772931eea7cdc3cdd7199e304d667aa344bd7 (patch) | |
tree | 2eec88e73a510f77ff359c8a3b88e2ecbd2eb44a /lib | |
parent | ff09d7119da02e1834e72884d61d1f1131b43466 (diff) | |
download | external_llvm-966772931eea7cdc3cdd7199e304d667aa344bd7.zip external_llvm-966772931eea7cdc3cdd7199e304d667aa344bd7.tar.gz external_llvm-966772931eea7cdc3cdd7199e304d667aa344bd7.tar.bz2 |
LiveRegUnits: Use *MBB for consistency and convenience.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 12 | ||||
-rw-r--r-- | lib/CodeGen/LiveRegUnits.cpp | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index b729729..e2d0eb4 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -1049,13 +1049,13 @@ bool IfConverter::IfConvertSimple(BBInfo &BBI, IfcvtKind Kind) { // Initialize liveins to the first BB. These are potentiall redefined by // predicated instructions. Redefs.init(TRI); - Redefs.addLiveIns(*(CvtBBI->BB), *TRI); - Redefs.addLiveIns(*(NextBBI->BB), *TRI); + Redefs.addLiveIns(CvtBBI->BB, *TRI); + Redefs.addLiveIns(NextBBI->BB, *TRI); // Compute a set of registers which must not be killed by instructions in // BB1: This is everything live-in to BB2. DontKill.init(TRI); - DontKill.addLiveIns(*(NextBBI->BB), *TRI); + DontKill.addLiveIns(NextBBI->BB, *TRI); if (CvtBBI->BB->pred_size() > 1) { BBI.NonPredSize -= TII->RemoveBranch(*BBI.BB); @@ -1154,8 +1154,8 @@ bool IfConverter::IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind) { // Initialize liveins to the first BB. These are potentially redefined by // predicated instructions. Redefs.init(TRI); - Redefs.addLiveIns(*(CvtBBI->BB), *TRI); - Redefs.addLiveIns(*(NextBBI->BB), *TRI); + Redefs.addLiveIns(CvtBBI->BB, *TRI); + Redefs.addLiveIns(NextBBI->BB, *TRI); DontKill.clear(); @@ -1284,7 +1284,7 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind, // Initialize liveins to the first BB. These are potentially redefined by // predicated instructions. Redefs.init(TRI); - Redefs.addLiveIns(*(BBI1->BB), *TRI); + Redefs.addLiveIns(BBI1->BB, *TRI); // Remove the duplicated instructions at the beginnings of both paths. MachineBasicBlock::iterator DI1 = BBI1->BB->begin(); diff --git a/lib/CodeGen/LiveRegUnits.cpp b/lib/CodeGen/LiveRegUnits.cpp index 5ff27dd..6221ca2 100644 --- a/lib/CodeGen/LiveRegUnits.cpp +++ b/lib/CodeGen/LiveRegUnits.cpp @@ -102,10 +102,10 @@ void LiveRegUnits::stepForward(const MachineInstr &MI, } /// Adds all registers in the live-in list of block @p BB. -void LiveRegUnits::addLiveIns(const MachineBasicBlock &BB, +void LiveRegUnits::addLiveIns(const MachineBasicBlock *MBB, const MCRegisterInfo &MCRI) { - for (MachineBasicBlock::livein_iterator L = BB.livein_begin(), - LE = BB.livein_end(); L != LE; ++L) { + for (MachineBasicBlock::livein_iterator L = MBB->livein_begin(), + LE = MBB->livein_end(); L != LE; ++L) { addReg(*L, MCRI); } } |