diff options
author | Devang Patel <dpatel@apple.com> | 2007-07-19 18:02:32 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-07-19 18:02:32 +0000 |
commit | 58e0ef1e90c3f6dbae213612b44e56f7d6d65ea7 (patch) | |
tree | 2bb0d2cd6c88f0733743b527d4e72274f9d332c7 /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 6b8337392cbdaacbdd8326f731daff1b11eba275 (diff) | |
download | external_llvm-58e0ef1e90c3f6dbae213612b44e56f7d6d65ea7.zip external_llvm-58e0ef1e90c3f6dbae213612b44e56f7d6d65ea7.tar.gz external_llvm-58e0ef1e90c3f6dbae213612b44e56f7d6d65ea7.tar.bz2 |
Verify loop info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 0a5de2b..4d59e81 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -74,6 +74,16 @@ namespace { AU.addPreserved<DominanceFrontier>(); AU.addPreservedID(BreakCriticalEdgesID); // No critical edges added. } + + /// verifyAnalysis() - Verify loop nest. + void verifyAnalysis() const { +#ifndef NDEBUG + LoopInfo *NLI = &getAnalysis<LoopInfo>(); + for (LoopInfo::iterator I = NLI->begin(), E = NLI->end(); I != E; ++I) + (*I)->verifyLoop(); +#endif + } + private: bool ProcessLoop(Loop *L); BasicBlock *SplitBlockPredecessors(BasicBlock *BB, const char *Suffix, |