summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-07 23:29:10 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-07 23:29:10 +0000
commit0d8ccaa5c8db820b5b93f37e51563148c57ba6b8 (patch)
tree58f7b1574c7c4d15cf1fa16aaffde8c41db5b31c /include
parentd756eceb83fc9a7536f76adfe24cdb19d4c2f253 (diff)
downloadllvm-0d8ccaa5c8db820b5b93f37e51563148c57ba6b8.tar.gz
llvm-0d8ccaa5c8db820b5b93f37e51563148c57ba6b8.tar.bz2
llvm-0d8ccaa5c8db820b5b93f37e51563148c57ba6b8.tar.xz
Let shrinkToUses optionally return a list of now dead machine instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127192 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 b09f8d1110..1391f0f95b 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -159,7 +159,9 @@ namespace llvm {
/// range to just the remaining uses. This method does not compute reaching
/// defs for new uses, and it doesn't remove dead defs.
/// Dead PHIDef values are marked as unused.
- void shrinkToUses(LiveInterval *li);
+ /// New dead machine instructions are added to the dead vector.
+ void shrinkToUses(LiveInterval *li,
+ SmallVectorImpl<MachineInstr*> *dead = 0);
// Interval removal