[PATCH] D111493: [IVUsers] Check for preheader instead of loop simplify form

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 9 08:10:08 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/IVUsers.cpp:107
       // If the domtree walk reaches a loop with no preheader, return false.
-      if (!DomLoop->isLoopSimplifyForm())
+      if (!DomLoop->getLoopPreheader())
         return false;
----------------
This is the only functional change in the patch, the rest is just renames.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111493/new/

https://reviews.llvm.org/D111493



More information about the llvm-commits mailing list