diff options
| author | Owen Anderson <resistor@mac.com> | 2008-07-23 19:47:27 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-07-23 19:47:27 +0000 |
| commit | 7c800ad977248601263bec5ac46969ddabf1535f (patch) | |
| tree | f895db3916a2fc836c6fcf7c6328c0dbd0d6c845 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h | |
| parent | ae187c6ebadd1146a4bdf4a12217e80d45073a23 (diff) | |
| download | bcm5719-llvm-7c800ad977248601263bec5ac46969ddabf1535f.tar.gz bcm5719-llvm-7c800ad977248601263bec5ac46969ddabf1535f.zip | |
Fix a compile-time regression introduced by my heuristic-changing patch. I forgot
to multiply the instruction count by a constant factor in a few places, which
caused the register allocator to require many more iterations.
llvm-svn: 53959
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.h')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h index de16fa15356..bb21515a354 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h @@ -126,7 +126,8 @@ namespace llvm { unsigned getRepIntervalSize(unsigned Reg) { if (!li_->hasInterval(Reg)) return 0; - return li_->getApproximateInstructionCount(li_->getInterval(Reg)); + return li_->getApproximateInstructionCount(li_->getInterval(Reg)) * + LiveIntervals::InstrSlots::NUM; } /// print - Implement the dump method. |

