summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegRewriter.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-09-03 02:52:02 +0000
committerLang Hames <lhames@gmail.com>2009-09-03 02:52:02 +0000
commit0b3720b3c383d7470451d96b0dc2f1882aa9c5f4 (patch)
tree4beec1e665ebe12111ea3839fd4b68a8ac2b6623 /llvm/lib/CodeGen/VirtRegRewriter.cpp
parent2d60e1ec0ca2977910c4d8bf3652039d20139eaa (diff)
downloadbcm5719-llvm-0b3720b3c383d7470451d96b0dc2f1882aa9c5f4.tar.gz
bcm5719-llvm-0b3720b3c383d7470451d96b0dc2f1882aa9c5f4.zip
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. llvm-svn: 80872
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegRewriter.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegRewriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegRewriter.cpp b/llvm/lib/CodeGen/VirtRegRewriter.cpp
index 6da6a9b9f06..79b366ca8d0 100644
--- a/llvm/lib/CodeGen/VirtRegRewriter.cpp
+++ b/llvm/lib/CodeGen/VirtRegRewriter.cpp
@@ -797,7 +797,7 @@ unsigned ReuseInfo::GetRegForReload(const TargetRegisterClass *RC,
// value aliases the new register. If so, codegen the previous reload
// and use this one.
unsigned PRRU = Op.PhysRegReused;
- if (TRI->areAliases(PRRU, PhysReg)) {
+ if (TRI->regsOverlap(PRRU, PhysReg)) {
// Okay, we found out that an alias of a reused register
// was used. This isn't good because it means we have
// to undo a previous reuse.
OpenPOWER on IntegriCloud