diff options
author | Owen Anderson <resistor@mac.com> | 2008-12-15 03:52:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-12-15 03:52:17 +0000 |
commit | c34d1123622ca99efffc8ae4fdb194ae4f1a66bc (patch) | |
tree | 386ff7af1332e32b3533de09bb019ec3b917b2fa /lib | |
parent | f33131685bb9de34dd876641bdf2d514fb49ce4c (diff) | |
download | external_llvm-c34d1123622ca99efffc8ae4fdb194ae4f1a66bc.zip external_llvm-c34d1123622ca99efffc8ae4fdb194ae4f1a66bc.tar.gz external_llvm-c34d1123622ca99efffc8ae4fdb194ae4f1a66bc.tar.bz2 |
Ifdef out some code that I didn't mean to enable by default yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index d3e15d4..3662424 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1611,11 +1611,18 @@ bool GVN::iterateOnFunction(Function &F) { // Top-down walk of the dominator tree bool changed = false; +#if 0 + // Needed for value numbering with phi construction to work. ReversePostOrderTraversal<Function*> RPOT(&F); for (ReversePostOrderTraversal<Function*>::rpo_iterator RI = RPOT.begin(), RE = RPOT.end(); RI != RE; ++RI) changed |= processBlock(*RI); - +#else + for (df_iterator<DomTreeNode*> DI = df_begin(DT->getRootNode()), + DE = df_end(DT->getRootNode()); DI != DE; ++DI) + changed |= processBlock(DI->getBlock()); +#endif + return changed; } |