diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-23 00:29:55 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-23 00:29:55 +0000 |
commit | 417df0129146e299e9fd273becab824887c384e9 (patch) | |
tree | 5788d6ee0cf2bed5831f8eb84e673aad98bc07c8 /lib/CodeGen/RegAllocGreedy.cpp | |
parent | 98c8141b6d8fcbb9bd258ebcdd4171f55c5a8e9d (diff) |
Fix a bug in determining if there is only a single interfering register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 0146a27621..59d4fc6180 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -240,8 +240,7 @@ LiveInterval *RAGreedy::getSingleInterference(LiveInterval &VirtReg, if (Q.checkInterference()) { if (Interference) return 0; - Q.collectInterferingVRegs(1); - if (!Q.seenAllInterferences()) + if (Q.collectInterferingVRegs(2) > 1) return 0; Interference = Q.interferingVRegs().front(); } |