summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-17 20:37:07 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-17 20:37:07 +0000
commit6a3dbd3b25bbc99bd1a233d6a74ddea3493ba6ac (patch)
tree512a2f340823e0cb054136093b13d679f6200e6b /include
parentc74513d1b6e2f6c91533a23ebbdc47a6f1dfcc0c (diff)
downloadllvm-6a3dbd3b25bbc99bd1a233d6a74ddea3493ba6ac.tar.gz
llvm-6a3dbd3b25bbc99bd1a233d6a74ddea3493ba6ac.tar.bz2
llvm-6a3dbd3b25bbc99bd1a233d6a74ddea3493ba6ac.tar.xz
Dead code elimination may separate the live interval into multiple connected components.
I have convinced myself that it can only happen when a phi value dies. When it happens, allocate new virtual registers for the components. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index b541a3a649..8ca58b82c8 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -160,7 +160,9 @@ namespace llvm {
/// defs for new uses, and it doesn't remove dead defs.
/// Dead PHIDef values are marked as unused.
/// New dead machine instructions are added to the dead vector.
- void shrinkToUses(LiveInterval *li,
+ /// Return true if the interval may have been separated into multiple
+ /// connected components.
+ bool shrinkToUses(LiveInterval *li,
SmallVectorImpl<MachineInstr*> *dead = 0);
// Interval removal