[PATCH] D81053: [LoopUnroll] Allow loops with multiple exiting blocks where loop latch is not necessary one of them.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 09:20:45 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/LoopUnroll.cpp:797
     // When completely unrolling, the last latch becomes unreachable.
     if (CompletelyUnroll) {
       BranchInst *Term = cast<BranchInst>(Latches.back()->getTerminator());
----------------
We should probably rewrite the latch here even if ExitingBI is null.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81053





More information about the llvm-commits mailing list