[PATCH] D94995: Loop peeling: check that latch is conditional branch

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 02:44:07 PST 2021


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/LoopPeel.cpp:123
+  // Peeling is only supported if the latch is a conditional branch.
+  if (!isa<BranchInst>(Latch->getTerminator()))
     return false;
----------------
this does only check for branch instructions, not conditional branches. Can you update the comment?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94995



More information about the llvm-commits mailing list