mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
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
This commit is contained in:
parent
f33131685b
commit
c34d112362
@ -1611,10 +1611,17 @@ bool GVN::iterateOnFunction(Function &F) {
|
|||||||
|
|
||||||
// Top-down walk of the dominator tree
|
// Top-down walk of the dominator tree
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
#if 0
|
||||||
|
// Needed for value numbering with phi construction to work.
|
||||||
ReversePostOrderTraversal<Function*> RPOT(&F);
|
ReversePostOrderTraversal<Function*> RPOT(&F);
|
||||||
for (ReversePostOrderTraversal<Function*>::rpo_iterator RI = RPOT.begin(),
|
for (ReversePostOrderTraversal<Function*>::rpo_iterator RI = RPOT.begin(),
|
||||||
RE = RPOT.end(); RI != RE; ++RI)
|
RE = RPOT.end(); RI != RE; ++RI)
|
||||||
changed |= processBlock(*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;
|
return changed;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user