[llvm] r304035 - MachineVerifier: Remove unused set; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 14:50:48 PDT 2017
Author: matze
Date: Fri May 26 16:50:48 2017
New Revision: 304035
URL: http://llvm.org/viewvc/llvm-project?rev=304035&view=rev
Log:
MachineVerifier: Remove unused set; NFC
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=304035&r1=304034&r2=304035&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Fri May 26 16:50:48 2017
@@ -87,7 +87,6 @@ namespace {
RegSet regsLive;
RegVector regsDefined, regsDead, regsKilled;
RegMaskVector regMasks;
- RegSet regsLiveInButUnused;
SlotIndex lastIndex;
@@ -419,7 +418,6 @@ unsigned MachineVerifier::verify(Machine
regsDead.clear();
regsKilled.clear();
regMasks.clear();
- regsLiveInButUnused.clear();
MBBInfoMap.clear();
return foundErrors;
@@ -756,7 +754,6 @@ MachineVerifier::visitMachineBasicBlockB
regsLive.insert(*SubRegs);
}
}
- regsLiveInButUnused = regsLive;
const MachineFrameInfo &MFI = MF->getFrameInfo();
BitVector PR = MFI.getPristineRegs(*MF);
@@ -1268,8 +1265,6 @@ void MachineVerifier::checkLiveness(cons
// Both use and def operands can read a register.
if (MO->readsReg()) {
- regsLiveInButUnused.erase(Reg);
-
if (MO->isKill())
addRegWithSubRegs(regsKilled, Reg);
More information about the llvm-commits
mailing list