[llvm-commits] [llvm] r97512 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Evan Cheng
evan.cheng at apple.com
Mon Mar 1 14:23:12 PST 2010
Author: evancheng
Date: Mon Mar 1 16:23:12 2010
New Revision: 97512
URL: http://llvm.org/viewvc/llvm-project?rev=97512&view=rev
Log:
MemoryDepAnalysis is not used if redundant load processing is disabled.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=97512&r1=97511&r2=97512&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Mon Mar 1 16:23:12 2010
@@ -2237,7 +2237,7 @@
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;
}
More information about the llvm-commits
mailing list