[PATCH] D136643: [LoopPeeling] Add flag to disable support for peeling loops with non-latch exits
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 16:01:18 PDT 2022
tra added a comment.
Thank you, Alina!
================
Comment at: llvm/lib/Transforms/Utils/LoopPeel.cpp:977
- for (const auto &[Term, Info] : Weights)
- fixupBranchWeights(Term, Info);
+ if (DisableAdvancedPeeling) {
+ fixupBranchWeightsLimited(Header, cast<BranchInst>(LatchTerm), ExitWeight,
----------------
Style nit: no need for `{}` around if/else bodies here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136643/new/
https://reviews.llvm.org/D136643
More information about the llvm-commits
mailing list