summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-10 17:37:41 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-10 17:37:41 +0000
commit50215afd8a61f18a6383327123ef563c58e77389 (patch)
treeb455b2bb8c5ab5a7be6e530fd2a238565283af95 /llvm/lib/CodeGen/RegAllocBasic.cpp
parent86a5101c277646fc8b82ab4b246fea82a0df7fd7 (diff)
downloadbcm5719-llvm-50215afd8a61f18a6383327123ef563c58e77389.tar.gz
bcm5719-llvm-50215afd8a61f18a6383327123ef563c58e77389.zip
Fix PR9883. Make sure all caches are invalidated when a live range is repaired.
The previous invalidation missed the alias interference caches. Also add a stats counter for the number of repaired ranges. llvm-svn: 131133
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocBasic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp
index 32cb62223b5..fdc4418c918 100644
--- a/llvm/lib/CodeGen/RegAllocBasic.cpp
+++ b/llvm/lib/CodeGen/RegAllocBasic.cpp
@@ -309,7 +309,7 @@ void RegAllocBase::allocatePhysRegs() {
}
// Invalidate all interference queries, live ranges could have changed.
- ++UserTag;
+ invalidateVirtRegs();
// selectOrSplit requests the allocator to return an available physical
// register if possible and populate a list of new live intervals that
OpenPOWER on IntegriCloud