diff options
author | Owen Anderson <resistor@mac.com> | 2006-06-09 18:33:30 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2006-06-09 18:33:30 +0000 |
commit | f25c19c6b57aec5670e87dc57840c6ac12252099 (patch) | |
tree | 696a944997fa35f334b7ebde573e2c48216951a8 /lib/Transforms/Utils/LCSSA.cpp | |
parent | e5e228df19d6e9e1218fecfb49f8ef1f53d6759c (diff) |
Make Loop able to verify that it is in LCSSA-form, and have the LCSSA pass assert
on this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r-- | lib/Transforms/Utils/LCSSA.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index e1af50e745..ecbf180438 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -98,7 +98,7 @@ bool LCSSA::runOnFunction(Function &F) { for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) { changed |= visitSubloop(*I); } - + return changed; } @@ -132,6 +132,8 @@ bool LCSSA::visitSubloop(Loop* L) { processInstruction(*I, exitBlocks); } + assert(L->isLCSSAForm()); + return true; } |