forked from OSchip/llvm-project
MemoryDepAnalysis is not used if redundant load processing is disabled.
llvm-svn: 97512
This commit is contained in:
parent
19c92aea01
commit
7263cf8431
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue