diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-02-11 23:55:29 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-02-11 23:55:29 +0000 |
| commit | 93c92225af5e29c7cb215530653e4fcb0e74b0c4 (patch) | |
| tree | 1dedbb341c554e388832fbbe62090dd8a4f66278 /llvm/lib/CodeGen | |
| parent | 4c4ca5a9d35cccb6c9fb4adbb5abe626ff684870 (diff) | |
| download | bcm5719-llvm-93c92225af5e29c7cb215530653e4fcb0e74b0c4.tar.gz bcm5719-llvm-93c92225af5e29c7cb215530653e4fcb0e74b0c4.zip | |
Reapply coalescer fix for better cross-class coalescing.
This time with fixed test cases.
llvm-svn: 95938
Diffstat (limited to 'llvm/lib/CodeGen')
| -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 df5c0ef3751..ac19f48e651 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 (SmallSize > Threshold || LargeSize > Threshold) { + if (LargeSize > Threshold) { unsigned SmallUses = std::distance(mri_->use_nodbg_begin(SmallReg), mri_->use_nodbg_end()); unsigned LargeUses = std::distance(mri_->use_nodbg_begin(LargeReg), |

