[llvm] r296675 - LIU::Query: Remove always false member+getter; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 1 13:02:53 PST 2017
Author: matze
Date: Wed Mar 1 15:02:52 2017
New Revision: 296675
URL: http://llvm.org/viewvc/llvm-project?rev=296675&view=rev
Log:
LIU::Query: Remove always false member+getter; NFC
Modified:
llvm/trunk/include/llvm/CodeGen/LiveIntervalUnion.h
llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveIntervalUnion.h?rev=296675&r1=296674&r2=296675&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveIntervalUnion.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveIntervalUnion.h Wed Mar 1 15:02:52 2017
@@ -112,7 +112,6 @@ public:
SmallVector<LiveInterval*,4> InterferingVRegs;
bool CheckedFirstInterference = false;
bool SeenAllInterferences = false;
- bool SeenUnspillableVReg = false;
unsigned Tag = 0;
unsigned UserTag = 0;
@@ -129,7 +128,6 @@ public:
InterferingVRegs.clear();
CheckedFirstInterference = false;
SeenAllInterferences = false;
- SeenUnspillableVReg = false;
Tag = 0;
UserTag = 0;
}
@@ -167,9 +165,6 @@ public:
// Did collectInterferingVRegs collect all interferences?
bool seenAllInterferences() const { return SeenAllInterferences; }
- // Did collectInterferingVRegs encounter an unspillable vreg?
- bool seenUnspillableVReg() const { return SeenUnspillableVReg; }
-
// Vector generated by collectInterferingVRegs.
const SmallVectorImpl<LiveInterval*> &interferingVRegs() const {
return InterferingVRegs;
Modified: llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBasic.cpp?rev=296675&r1=296674&r2=296675&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBasic.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBasic.cpp Wed Mar 1 15:02:52 2017
@@ -176,8 +176,6 @@ bool RABasic::spillInterferences(LiveInt
for (MCRegUnitIterator Units(PhysReg, TRI); Units.isValid(); ++Units) {
LiveIntervalUnion::Query &Q = Matrix->query(VirtReg, *Units);
Q.collectInterferingVRegs();
- if (Q.seenUnspillableVReg())
- return false;
for (unsigned i = Q.interferingVRegs().size(); i; --i) {
LiveInterval *Intf = Q.interferingVRegs()[i - 1];
if (!Intf->isSpillable() || Intf->weight > VirtReg.weight)
More information about the llvm-commits
mailing list