summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-11 23:55:29 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-11 23:55:29 +0000
commit93c92225af5e29c7cb215530653e4fcb0e74b0c4 (patch)
tree1dedbb341c554e388832fbbe62090dd8a4f66278 /llvm/lib/CodeGen
parent4c4ca5a9d35cccb6c9fb4adbb5abe626ff684870 (diff)
downloadbcm5719-llvm-93c92225af5e29c7cb215530653e4fcb0e74b0c4.tar.gz
bcm5719-llvm-93c92225af5e29c7cb215530653e4fcb0e74b0c4.zip
Reapply coalescer fix for better cross-class coalescing.
This time with fixed test cases. llvm-svn: 95938
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index df5c0ef3751..ac19f48e651 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -1148,7 +1148,7 @@ SimpleRegisterCoalescing::isWinToJoinCrossClass(unsigned LargeReg,
LiveInterval &SmallInt = li_->getInterval(SmallReg);
unsigned LargeSize = li_->getApproximateInstructionCount(LargeInt);
unsigned SmallSize = li_->getApproximateInstructionCount(SmallInt);
- if (SmallSize > Threshold || LargeSize > Threshold) {
+ if (LargeSize > Threshold) {
unsigned SmallUses = std::distance(mri_->use_nodbg_begin(SmallReg),
mri_->use_nodbg_end());
unsigned LargeUses = std::distance(mri_->use_nodbg_begin(LargeReg),
OpenPOWER on IntegriCloud