forked from OSchip/llvm-project
Revert functional change. This broke a bunch of tests.
llvm-svn: 95921
This commit is contained in:
parent
2a34015abc
commit
0d642824d6
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue