diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-23 13:37:51 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-23 13:37:51 +0000 |
commit | 79b0c3f0b9d91bbda354a2c6f22b6578655a5143 (patch) | |
tree | 2c3e9e58e716c8d6812d24bc3d3053dd1fc8d1a3 /include | |
parent | 954e3164be831712a6df2620870f80e7f58bf644 (diff) | |
download | llvm-79b0c3f0b9d91bbda354a2c6f22b6578655a5143.tar.gz llvm-79b0c3f0b9d91bbda354a2c6f22b6578655a5143.tar.bz2 llvm-79b0c3f0b9d91bbda354a2c6f22b6578655a5143.tar.xz |
Fix failing test cases with joined live intervals. It turns out that
when joining we need to check if we overlap with the second interval
or any of its aliases.
Also make joining intervals the default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/LiveIntervals.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 292c511120..7cf627b355 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -162,6 +162,8 @@ namespace llvm { MachineBasicBlock::iterator mi, unsigned reg); + bool overlapsAliases(const Interval& lhs, const Interval& rhs) const; + unsigned getInstructionIndex(MachineInstr* instr) const; void printRegName(unsigned reg) const; diff --git a/include/llvm/CodeGen/LiveIntervals.h b/include/llvm/CodeGen/LiveIntervals.h index 292c511120..7cf627b355 100644 --- a/include/llvm/CodeGen/LiveIntervals.h +++ b/include/llvm/CodeGen/LiveIntervals.h @@ -162,6 +162,8 @@ namespace llvm { MachineBasicBlock::iterator mi, unsigned reg); + bool overlapsAliases(const Interval& lhs, const Interval& rhs) const; + unsigned getInstructionIndex(MachineInstr* instr) const; void printRegName(unsigned reg) const; |