MemoryDepAnalysis is not used if redundant load processing is disabled.

llvm-svn: 97512
This commit is contained in:
Evan Cheng 2010-03-01 22:23:12 +00:00
parent 19c92aea01
commit 7263cf8431
1 changed files with 1 additions and 1 deletions

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;
}