Revert functional change. This broke a bunch of tests.

llvm-svn: 95921
This commit is contained in:
Jakob Stoklund Olesen 2010-02-11 21:19:44 +00:00
parent 2a34015abc
commit 0d642824d6
1 changed files with 1 additions and 1 deletions

View File

@ -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),