aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-12 16:45:01 +0000
committerChris Lattner <sabre@nondot.org>2003-09-12 16:45:01 +0000
commita497748fb1a982d85ddef50894abb299c5df5ff2 (patch)
tree4e4027031b8c6b7d4469a5030148d925dd6a4e5d /lib
parent46d5bca1acb7e67e78a7dea06fe6671143245df2 (diff)
downloadexternal_llvm-a497748fb1a982d85ddef50894abb299c5df5ff2.zip
external_llvm-a497748fb1a982d85ddef50894abb299c5df5ff2.tar.gz
external_llvm-a497748fb1a982d85ddef50894abb299c5df5ff2.tar.bz2
Make sure to cannonicalize loops before running indvar simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index c96eaf0..814f452 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -193,6 +193,7 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LoopInfo>();
+ AU.addRequiredID(LoopPreheadersID);
AU.setPreservesCFG();
}
};