summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.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/X86/X86InstrInfo.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/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index ae45301f04b..fe26389050c 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -2550,7 +2550,7 @@ void X86InstrInfo::replaceBranchWithTailCall(
// call. This way they still appear live across the call.
LivePhysRegs LiveRegs(getRegisterInfo());
LiveRegs.addLiveOuts(MBB);
- SmallVector<std::pair<unsigned, const MachineOperand *>, 8> Clobbers;
+ SmallVector<std::pair<MCPhysReg, const MachineOperand *>, 8> Clobbers;
LiveRegs.stepForward(*MIB, Clobbers);
for (const auto &C : Clobbers) {
MIB.addReg(C.first, RegState::Implicit);
OpenPOWER on IntegriCloud