[PATCH] D56921: [LCSSA] Add expensive verification of LCSSA form for sub-loops.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 2 06:42:33 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL352958: [LCSSA] Add expensive verification of LCSSA form for sub-loops. (authored by fhahn, committed by ).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D56921?vs=182550&id=184903#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56921/new/
https://reviews.llvm.org/D56921
Files:
llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
Index: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
+++ llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
@@ -305,6 +305,12 @@
ScalarEvolution *SE) {
bool Changed = false;
+#ifdef EXPENSIVE_CHECKS
+ // Verify all sub-loops are in LCSSA form already.
+ for (Loop *SubLoop: L)
+ assert(SubLoop->isRecursivelyLCSSAForm(DT, *LI) && "Subloop not in LCSSA!");
+#endif
+
SmallVector<BasicBlock *, 8> ExitBlocks;
L.getExitBlocks(ExitBlocks);
if (ExitBlocks.empty())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56921.184903.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190202/4702f77e/attachment.bin>
More information about the llvm-commits
mailing list