diff options
author | David Callahan <dcallahan@fb.com> | 2016-10-05 21:36:16 +0000 |
---|---|---|
committer | David Callahan <dcallahan@fb.com> | 2016-10-05 21:36:16 +0000 |
commit | c1051ab26e8b2182268130343b9b11e2e4b61df2 (patch) | |
tree | 6a5ccc150ceedc01edc274dd6ac86db2c11c0e66 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 71bba7253e1465daa02a79644baa23926e6b4ccc (diff) | |
download | bcm5719-llvm-c1051ab26e8b2182268130343b9b11e2e4b61df2.tar.gz bcm5719-llvm-c1051ab26e8b2182268130343b9b11e2e4b61df2.zip |
Modify df_iterator to support post-order actions
Summary: This makes a change to the state used to maintain visited information for depth first iterator. We know assume a method "completed(...)" which is called after all children of a node have been visited. In all existing cases, this method does nothing so this patch has no functional changes. It will however allow a client to distinguish back from cross edges in a DFS tree.
Reviewers: nadav, mehdi_amini, dberlin
Subscribers: MatzeB, mzolotukhin, twoh, freik, llvm-commits
Differential Revision: https://reviews.llvm.org/D25191
llvm-svn: 283391
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 4195f007d43..c43e8349ff9 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -599,7 +599,7 @@ void LiveIntervals::pruneValue(LiveRange &LR, SlotIndex Kill, // Find all blocks that are reachable from KillMBB without leaving VNI's live // range. It is possible that KillMBB itself is reachable, so start a DFS // from each successor. - typedef SmallPtrSet<MachineBasicBlock*, 9> VisitedTy; + typedef df_iterator_default_set<MachineBasicBlock*,9> VisitedTy; VisitedTy Visited; for (MachineBasicBlock::succ_iterator SuccI = KillMBB->succ_begin(), SuccE = KillMBB->succ_end(); |