summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-09-07 09:13:17 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-09-07 09:13:17 +0000
commit0f056352a86f2cfa12c1ed19dc948c351658bf6a (patch)
treef437248007d47e0807e1d2e9842d386d4bd1a0c3 /llvm/lib/CodeGen/RegAllocGreedy.cpp
parentf3a3cd198e8c654facc21e46d550846f7a01feab (diff)
downloadbcm5719-llvm-0f056352a86f2cfa12c1ed19dc948c351658bf6a.tar.gz
bcm5719-llvm-0f056352a86f2cfa12c1ed19dc948c351658bf6a.zip
Revert "[RegAlloc] Make sure live-ranges reflect the state of the IR when removing them"
This temporarily reverts commit 463fa38 (r311401). See https://bugs.llvm.org/show_bug.cgi?id=34502 llvm-svn: 312708
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 6f0b7a936c5..020e81eca2d 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -546,17 +546,14 @@ void RAGreedy::getAnalysisUsage(AnalysisUsage &AU) const {
//===----------------------------------------------------------------------===//
bool RAGreedy::LRE_CanEraseVirtReg(unsigned VirtReg) {
- LiveInterval &LI = LIS->getInterval(VirtReg);
if (VRM->hasPhys(VirtReg)) {
+ LiveInterval &LI = LIS->getInterval(VirtReg);
Matrix->unassign(LI);
aboutToRemoveInterval(LI);
return true;
}
// Unassigned virtreg is probably in the priority queue.
// RegAllocBase will erase it after dequeueing.
- // Nonetheless, clear the live-range so that the debug
- // dump will show the right state for that VirtReg.
- LI.clear();
return false;
}
OpenPOWER on IntegriCloud