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 | 50ca1a232b23265d72dc745102abd9492cff55db (patch) | |
tree | 46276e5ccb953cc67f753171431bc36d8f1436ed /lib/CodeGen/SimpleRegisterCoalescing.h | |
parent | 29b19478f25ce9785682bede679bd8129b8ab5e9 (diff) | |
download | external_llvm-50ca1a232b23265d72dc745102abd9492cff55db.tar.gz external_llvm-50ca1a232b23265d72dc745102abd9492cff55db.tar.bz2 external_llvm-50ca1a232b23265d72dc745102abd9492cff55db.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.h')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.h b/lib/CodeGen/SimpleRegisterCoalescing.h index de16fa1535..bb21515a35 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.h +++ b/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. |