diff options
author | Lang Hames <lhames@gmail.com> | 2009-09-03 02:52:02 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-09-03 02:52:02 +0000 |
commit | 3f2f3f5341374c85955cfaffa71886724999762d (patch) | |
tree | ffbcbb80b7b5985fe56b523e4f54e6155af65497 /lib/CodeGen/RegAllocPBQP.cpp | |
parent | 03a5f139fb7d3e9c49fe95aea4c717fab2285d82 (diff) |
Fixed a test that ensures the LocalRewriter does not attempt to
avoid reloads by reusing clobbered registers.
This was causing issues in 256.bzip2 when compiled with PIC for
a while (starting at r78217), though the problem has since been masked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 853192ca9d..e85a5ac704 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -269,7 +269,7 @@ PBQP::Matrix* PBQPRegAlloc::buildInterferenceMatrix( unsigned reg2 = *a2Itr; // If the row/column regs are identical or alias insert an infinity. - if ((reg1 == reg2) || tri->areAliases(reg1, reg2)) { + if (tri->regsOverlap(reg1, reg2)) { (*m)[ri][ci] = std::numeric_limits<PBQP::PBQPNum>::infinity(); isZeroMatrix = false; } |