diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-02-11 21:19:44 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-02-11 21:19:44 +0000 |
| commit | 0d642824d615bb672519af4e0933ad6480d091d0 (patch) | |
| tree | f5577dc90343663e4b9536616552a4050601b2c5 /llvm/lib | |
| parent | 2a34015abcab66e91966598aafe000be49bd88a9 (diff) | |
| download | bcm5719-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.cpp | 2 |
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), |

