From a64f8b6c8a7dad098ae3065b062446f195208fb4 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 1 Mar 2017 21:02:52 +0000 Subject: [PATCH] LIU::Query: Remove always false member+getter; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296675 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LiveIntervalUnion.h | 5 ----- lib/CodeGen/RegAllocBasic.cpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/include/llvm/CodeGen/LiveIntervalUnion.h b/include/llvm/CodeGen/LiveIntervalUnion.h index da38085a30c..ab404c414c9 100644 --- a/include/llvm/CodeGen/LiveIntervalUnion.h +++ b/include/llvm/CodeGen/LiveIntervalUnion.h @@ -112,7 +112,6 @@ public: SmallVector 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 &interferingVRegs() const { return InterferingVRegs; diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index a558e371ad4..a87fed3a687 100644 --- a/lib/CodeGen/RegAllocBasic.cpp +++ b/lib/CodeGen/RegAllocBasic.cpp @@ -176,8 +176,6 @@ bool RABasic::spillInterferences(LiveInterval &VirtReg, unsigned PhysReg, 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) -- 2.50.1