summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-16 22:56:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-16 22:56:11 +0000
commit2926733240d0766fbd45df6eb609ad2328f0307d (patch)
treeb9589fb2bf0928207e36690778c6f7ba44ff85d7 /lib/CodeGen/RegAllocBasic.cpp
parentc46570dc05851395829bef904bb6ddb1260400d1 (diff)
downloadllvm-2926733240d0766fbd45df6eb609ad2328f0307d.tar.gz
llvm-2926733240d0766fbd45df6eb609ad2328f0307d.tar.bz2
llvm-2926733240d0766fbd45df6eb609ad2328f0307d.tar.xz
Tag cached interference with a user-provided tag instead of the virtual register number.
The live range of a virtual register may change which invalidates the cached interference information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--lib/CodeGen/RegAllocBasic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp
index d51be52027..ce92f3da43 100644
--- a/lib/CodeGen/RegAllocBasic.cpp
+++ b/lib/CodeGen/RegAllocBasic.cpp
@@ -296,6 +296,9 @@ void RegAllocBase::allocatePhysRegs() {
continue;
}
+ // Invalidate all interference queries, live ranges could have changed.
+ ++UserTag;
+
// selectOrSplit requests the allocator to return an available physical
// register if possible and populate a list of new live intervals that
// result from splitting.