[PATCH] D50062: [UnJ] Add debug messages at to why loops are not unrolled. NFC

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 09:49:31 PDT 2018


Meinersbur accepted this revision.
Meinersbur added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: lib/Transforms/Utils/LoopUnrollAndJam.cpp:757-758
+  // outer loop
+  auto CheckInnerLoopIterationCountInvariant = [](Loop *SubLoop, Loop *OuterL,
+                                                  ScalarEvolution &SE) {
+    BasicBlock *SubLoopLatch = SubLoop->getLoopLatch();
----------------
Could we name this in respect to what it returns? E.g. `HasConsistentIterationCounts`?


https://reviews.llvm.org/D50062





More information about the llvm-commits mailing list