once at the beginning of GVN instead of once per iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123278
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned Iteration = 0;
+ // FIXME: Remove this when PR8954 is fixed.
+ DT->DT->recalculate(F);
+
while (ShouldContinue) {
DEBUG(dbgs() << "GVN iteration: " << Iteration << "\n");
ShouldContinue = iterateOnFunction(F);
RE = RPOT.end(); RI != RE; ++RI)
Changed |= processBlock(*RI);
#else
- DT->DT->recalculate(F);
for (df_iterator<DomTreeNode*> DI = df_begin(DT->getRootNode()),
DE = df_end(DT->getRootNode()); DI != DE; ++DI)
Changed |= processBlock(DI->getBlock());