commit | a497748fb1a982d85ddef50894abb299c5df5ff2 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Sep 12 16:45:01 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Sep 12 16:45:01 2003 +0000 |
tree | 4e4027031b8c6b7d4469a5030148d925dd6a4e5d | |
parent | 46d5bca1acb7e67e78a7dea06fe6671143245df2 [diff] [blame] |
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
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 @@ virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); + AU.addRequiredID(LoopPreheadersID); AU.setPreservesCFG(); } };