summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-11-06 19:00:11 +0000
committerMatthias Braun <matze@braunis.de>2018-11-06 19:00:11 +0000
commitc6613879ce57e9e9947b9a91f9f0a9ef7382fb2c (patch)
treef8f37a063acee6b133a37cb8381bfb40060e3717 /llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
parentfa441730bb7651c7c3528fcfc705b437ac04befd (diff)
downloadbcm5719-llvm-c6613879ce57e9e9947b9a91f9f0a9ef7382fb2c.tar.gz
bcm5719-llvm-c6613879ce57e9e9947b9a91f9f0a9ef7382fb2c.zip
LivePhysRegs/IfConversion: Change some types from unsigned to MCPhysReg; NFC
Change the type in a couple of lists and sets that only store physical registers from unsigned to MCPhysRegs. The later is only 16bits and saves us a bit of memory. llvm-svn: 346254
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCExpandISEL.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCExpandISEL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp b/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
index fe41e1b36a5..a03e691ef5b 100644
--- a/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
+++ b/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
@@ -392,7 +392,7 @@ void PPCExpandISEL::reorganizeBlockLayout(BlockISELList &BIL,
// liveness state at the end of MBB (liveOut of MBB) as the liveIn for
// NewSuccessor. Otherwise, will cause cyclic dependence.
LivePhysRegs LPR(*MF->getSubtarget<PPCSubtarget>().getRegisterInfo());
- SmallVector<std::pair<unsigned, const MachineOperand *>, 2> Clobbers;
+ SmallVector<std::pair<MCPhysReg, const MachineOperand *>, 2> Clobbers;
for (MachineInstr &MI : *MBB)
LPR.stepForward(MI, Clobbers);
for (auto &LI : LPR)
OpenPOWER on IntegriCloud