aboutsummaryrefslogtreecommitdiffstats
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
commit9637dd50f46bde79091c86c062b58bf406ac2a25 (patch)
treec07cda976515208ff2e46b480a1693a1c2eece76
parent11eafa8bed42a8bab5d1224e6680dcb6bb104994 (diff)
downloadexternal_llvm-9637dd50f46bde79091c86c062b58bf406ac2a25.zip
external_llvm-9637dd50f46bde79091c86c062b58bf406ac2a25.tar.gz
external_llvm-9637dd50f46bde79091c86c062b58bf406ac2a25.tar.bz2
Revert functional change. This broke a bunch of tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95921 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index ac19f48..df5c0ef 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/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),