mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
Revert invalid r60393. It causes llvm-gcc bootstrap fails in release builds.
See PR3160 for details git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b052cfe52
commit
64b535608e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user