diff options
author | Igor Laevsky <igmyrj@gmail.com> | 2016-10-28 12:57:20 +0000 |
---|---|---|
committer | Igor Laevsky <igmyrj@gmail.com> | 2016-10-28 12:57:20 +0000 |
commit | c3ccf5d77baa8cf4237e3eb68858eda97155e037 (patch) | |
tree | 76936fa233d72a3547d87bbca964474894375aa8 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 10c606295ffe6800558566718c6332355097efa2 (diff) | |
download | llvm-c3ccf5d77baa8cf4237e3eb68858eda97155e037.zip llvm-c3ccf5d77baa8cf4237e3eb68858eda97155e037.tar.gz llvm-c3ccf5d77baa8cf4237e3eb68858eda97155e037.tar.bz2 |
[LCSSA] Perform LCSSA verification only for the current loop nest.
Now LPPassManager will run LCSSA verification only for the top-level loop
which was processed on the current iteration.
Differential Revision: https://reviews.llvm.org/D25873
llvm-svn: 285394
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 8878689..824bc14 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -17,6 +17,7 @@ #include "llvm/Analysis/GlobalsModRef.h" #include "llvm/Analysis/GlobalsModRef.h" #include "llvm/Analysis/LoopInfo.h" +#include "llvm/Analysis/LoopPass.h" #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Analysis/ScalarEvolutionAliasAnalysis.h" #include "llvm/Analysis/ScalarEvolutionExpander.h" @@ -946,6 +947,10 @@ void llvm::getLoopAnalysisUsage(AnalysisUsage &AU) { AU.addPreservedID(LoopSimplifyID); AU.addRequiredID(LCSSAID); AU.addPreservedID(LCSSAID); + // This is used in the LPPassManager to perform LCSSA verification on passes + // which preserve lcssa form + AU.addRequired<LCSSAVerificationPass>(); + AU.addPreserved<LCSSAVerificationPass>(); // Loop passes are designed to run inside of a loop pass manager which means // that any function analyses they require must be required by the first loop |