Ifdef out some code that I didn't mean to enable by default yet.

llvm-svn: 61024
This commit is contained in:
Owen Anderson 2008-12-15 03:52:17 +00:00
parent 22cfa14eed
commit 90af4c9640

View File

@ -1611,10 +1611,17 @@ 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;
}