aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-05 03:22:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-05 03:22:34 +0000
commitebcba1e5d8a34cb1ef2a31ac1231d04715b60e8b (patch)
tree5cf58e923ef6ad5f63c7cf3c83aa6f68266b5315 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parent2af4a6c288939754c302cb397c3c334dff6def41 (diff)
downloadexternal_llvm-ebcba1e5d8a34cb1ef2a31ac1231d04715b60e8b.zip
external_llvm-ebcba1e5d8a34cb1ef2a31ac1231d04715b60e8b.tar.gz
external_llvm-ebcba1e5d8a34cb1ef2a31ac1231d04715b60e8b.tar.bz2
- Mark last use of a split interval as kill instead of letting spiller track it.
This allows an important optimization to be re-enabled. - If all uses / defs of a split interval can be folded, give the interval a low spill weight so it would not be picked in case spilling is needed (avoid pushing other intervals in the same BB to be spilled). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index a40d0ab..19865e5 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -278,6 +278,8 @@ namespace llvm {
SmallVector<unsigned, 2> &Ops,
bool isSS, int Slot, unsigned Reg);
+ /// canFoldMemoryOperand - Returns true if the specified load / store
+ /// folding is possible.
bool canFoldMemoryOperand(MachineInstr *MI,
SmallVector<unsigned, 2> &Ops) const;