summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-14 17:52:07 +0000
committerMatthias Braun <matze@braunis.de>2015-07-14 17:52:07 +0000
commit9912bb817cef9d1829acb4baec4a27b7eaf5b610 (patch)
treefd24e6d6cd0c74144197fefd9b612624eafa5043 /llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
parent092c475e250af64e7b9ba459067d43cb71fb6dfd (diff)
downloadbcm5719-llvm-9912bb817cef9d1829acb4baec4a27b7eaf5b610.tar.gz
bcm5719-llvm-9912bb817cef9d1829acb4baec4a27b7eaf5b610.zip
MachineRegisterInfo: Remove UsedPhysReg infrastructure
We have a detailed def/use lists for every physical register in MachineRegisterInfo anyway, so there is little use in maintaining an additional bitset of which ones are used. Removing it frees us from extra book keeping. This simplifies VirtRegMap. Differential Revision: http://reviews.llvm.org/D10911 llvm-svn: 242173
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64FrameLowering.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64FrameLowering.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index a76473f7e53..a7817f4f67d 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -354,7 +354,6 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
if (NumBytes && NeedsRealignment) {
// Use the first callee-saved register as a scratch register.
scratchSPReg = AArch64::X9;
- MF.getRegInfo().setPhysRegUsed(scratchSPReg);
}
// If we're a leaf function, try using the red zone.
OpenPOWER on IntegriCloud