diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-19 22:11:48 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-19 22:11:48 +0000 |
| commit | 9fb04015ffa1fdb73a6faf03779e5a6cf3257eba (patch) | |
| tree | 64c62a7af9db0ce1ee55e6aa7353af24f0f5275b /llvm/lib/CodeGen/LiveInterval.cpp | |
| parent | b25d8c3af4a92ac20f2822a6809746dbbeb8214b (diff) | |
| download | llvm-9fb04015ffa1fdb73a6faf03779e5a6cf3257eba.zip llvm-9fb04015ffa1fdb73a6faf03779e5a6cf3257eba.tar.gz llvm-9fb04015ffa1fdb73a6faf03779e5a6cf3257eba.tar.bz2 | |
Implement RAGreedy::splitAroundRegion and remove loop splitting.
Region splitting includes loop splitting as a subset, and it is more generic.
The splitting heuristics for variables that are live in more than one block are
now:
1. Try to create a region that covers multiple basic blocks.
2. Try to create a new live range for each block with multiple uses.
3. Spill.
Steps 2 and 3 are similar to what the standard spiller is doing.
llvm-svn: 123853
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index c6a0149..c2dbd6a 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -650,7 +650,9 @@ void LiveRange::dump() const { } void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const { - OS << PrintReg(reg, TRI) << ',' << weight; + OS << PrintReg(reg, TRI); + if (weight != 0) + OS << ',' << weight; if (empty()) OS << " EMPTY"; |
