summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FloatingPoint.cpp
diff options
context:
space:
mode:
authorDavid Callahan <dcallahan@fb.com>2016-10-05 21:36:16 +0000
committerDavid Callahan <dcallahan@fb.com>2016-10-05 21:36:16 +0000
commitc1051ab26e8b2182268130343b9b11e2e4b61df2 (patch)
tree6a5ccc150ceedc01edc274dd6ac86db2c11c0e66 /llvm/lib/Target/X86/X86FloatingPoint.cpp
parent71bba7253e1465daa02a79644baa23926e6b4ccc (diff)
downloadbcm5719-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/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index f0e89590d30..3daa56b4db2 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp
@@ -326,7 +326,7 @@ bool FPS::runOnMachineFunction(MachineFunction &MF) {
// Process the function in depth first order so that we process at least one
// of the predecessors for every reachable block in the function.
- SmallPtrSet<MachineBasicBlock*, 8> Processed;
+ df_iterator_default_set<MachineBasicBlock*> Processed;
MachineBasicBlock *Entry = &MF.front();
bool Changed = false;
OpenPOWER on IntegriCloud