diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-22 04:05:13 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-22 04:05:13 +0000 |
commit | 7200c6b82acb8401048a2bc8a423f23b48db6731 (patch) | |
tree | 06f27de9bb971337608095fe2004789e030bbd37 /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 0ad91703274b57f98a08baa545712b64c4b89987 (diff) |
Abstract merging of ranges away from number of slots per instruction.
Also make it less aggressive as the current implementation breaks in
some cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 3769f07de7..24bc8956b3 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -126,7 +126,10 @@ namespace llvm { }; static unsigned getBaseIndex(unsigned index) { - return index - (index % 4); + return index - (index % InstrSlots::NUM); + } + static unsigned getBoundaryIndex(unsigned index) { + return getBaseIndex(index + InstrSlots::NUM - 1); } static unsigned getLoadIndex(unsigned index) { return getBaseIndex(index) + InstrSlots::LOAD; |