summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-11 21:19:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-11 21:19:44 +0000
commit0d642824d615bb672519af4e0933ad6480d091d0 (patch)
treef5577dc90343663e4b9536616552a4050601b2c5 /llvm/lib
parent2a34015abcab66e91966598aafe000be49bd88a9 (diff)
downloadbcm5719-llvm-0d642824d615bb672519af4e0933ad6480d091d0.tar.gz
bcm5719-llvm-0d642824d615bb672519af4e0933ad6480d091d0.zip
Revert functional change. This broke a bunch of tests.
llvm-svn: 95921
Diffstat (limited to 'llvm/lib')
-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 ac19f48e651..df5c0ef3751 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 (LargeSize > Threshold) {
+ if (SmallSize > Threshold || 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