diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-10 17:37:41 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-10 17:37:41 +0000 |
commit | bdda37d7fbafe6876f248341837423a4100f95a5 (patch) | |
tree | 19a15ab39a313eee8b388aa6e4e4f1f6ad46d705 /lib/CodeGen/RegAllocBasic.cpp | |
parent | 0d450dc65906a30beb56aeb1ee22b45b1cd4596c (diff) | |
download | llvm-bdda37d7fbafe6876f248341837423a4100f95a5.tar.gz llvm-bdda37d7fbafe6876f248341837423a4100f95a5.tar.bz2 llvm-bdda37d7fbafe6876f248341837423a4100f95a5.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocBasic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index 32cb62223b..fdc4418c91 100644 --- a/lib/CodeGen/RegAllocBasic.cpp +++ b/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 |