MemoryDepAnalysis is not used if redundant load processing is disabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2010-03-01 22:23:12 +00:00
parent df51247725
commit 19d417c346

View File

@ -2237,7 +2237,7 @@ bool GVN::splitCriticalEdges() {
std::pair<TerminatorInst*, unsigned> Edge = toSplit.pop_back_val();
SplitCriticalEdge(Edge.first, Edge.second, this);
} while (!toSplit.empty());
MD->invalidateCachedPredecessors();
if (MD) MD->invalidateCachedPredecessors();
return true;
}