diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-12 16:45:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-12 16:45:01 +0000 |
commit | a497748fb1a982d85ddef50894abb299c5df5ff2 (patch) | |
tree | 4e4027031b8c6b7d4469a5030148d925dd6a4e5d /lib | |
parent | 46d5bca1acb7e67e78a7dea06fe6671143245df2 (diff) | |
download | external_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.cpp | 1 |
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(); } }; |