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

Joseph Tremoulet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 05:38:42 PST 2021


JosephTremoulet marked an inline comment as done.
JosephTremoulet 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;
----------------
fhahn wrote:
> this does only check for branch instructions, not conditional branches. Can you update the comment?
> this does only check for branch instructions, not conditional branches. Can you update the comment?

Updated.


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