1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Revert invalid r60393. It causes llvm-gcc bootstrap fails in release builds.

See PR3160 for details

llvm-svn: 60604
This commit is contained in:
Anton Korobeynikov 2008-12-05 19:38:49 +00:00
parent 460beb0063
commit 30085a6f51

View File

@ -1484,7 +1484,6 @@ bool GVN::performPRE(Function& F) {
if (isCriticalEdge(PREPred->getTerminator(), succNum)) {
toSplit.push_back(std::make_pair(PREPred->getTerminator(), succNum));
Changed = true;
continue;
}
@ -1547,14 +1546,10 @@ bool GVN::performPRE(Function& F) {
}
for (SmallVector<std::pair<TerminatorInst*, unsigned>, 4>::iterator
I = toSplit.begin(), E = toSplit.end(); I != E; ++I) {
I = toSplit.begin(), E = toSplit.end(); I != E; ++I)
SplitCriticalEdge(I->first, I->second, this);
BasicBlock* NewBlock = I->first->getSuccessor(I->second);
localAvail[NewBlock] =
new ValueNumberScope(localAvail[I->first->getParent()]);
}
return Changed;
return Changed || toSplit.size();
}
// iterateOnFunction - Executes one iteration of GVN