summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-09-09 00:52:42 +0000
committerMatthias Braun <matze@braunis.de>2017-09-09 00:52:42 +0000
commita5225e8cb087943bb65f245e1d5df1824a999582 (patch)
treef50924584e71dc240daea246156ca2c2bafe51ae /llvm/lib/CodeGen/RegAllocFast.cpp
parent8c0314c3ed50b915113d0f4f64de0ead2286188d (diff)
downloadbcm5719-llvm-a5225e8cb087943bb65f245e1d5df1824a999582.tar.gz
bcm5719-llvm-a5225e8cb087943bb65f245e1d5df1824a999582.zip
RegAllocFast: Remove write-only set; NFC
llvm-svn: 312844
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index fd6c2877667..ae0114f326f 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -133,11 +133,6 @@ namespace {
return false;
}
- // SkippedInstrs - Descriptors of instructions whose clobber list was
- // ignored because all registers were spilled. It is still necessary to
- // mark all the clobbered registers as used by the function.
- SmallPtrSet<const MCInstrDesc*, 4> SkippedInstrs;
-
// isBulkSpilling - This flag is set when LiveRegMap will be cleared
// completely after spilling all live registers. LiveRegMap entries should
// not be erased.
@@ -1025,10 +1020,6 @@ void RAFast::AllocateBasicBlock() {
// those for virtual registers in between.
DEBUG(dbgs() << " Spilling remaining registers before call.\n");
spillAll(MI);
-
- // The imp-defs are skipped below, but we still need to mark those
- // registers as used by the function.
- SkippedInstrs.insert(&MCID);
}
// Third scan.
@@ -1112,7 +1103,6 @@ bool RAFast::runOnMachineFunction(MachineFunction &Fn) {
// replaced. Remove the virtual registers.
MRI->clearVirtRegs();
- SkippedInstrs.clear();
StackSlotForVirtReg.clear();
LiveDbgValueMap.clear();
return true;
OpenPOWER on IntegriCloud