From: Matthias Braun Date: Sat, 9 Sep 2017 00:52:42 +0000 (+0000) Subject: RegAllocFast: Remove write-only set; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d25fc768a7bb2fb4fccae6a24384fd4e7f1a6e6c;p=llvm RegAllocFast: Remove write-only set; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312844 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index fd6c2877667..ae0114f326f 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/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 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;