[all-commits] [llvm/llvm-project] 24b977: [LoopPeel] Remove known trip count restriction whe...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon May 26 12:08:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24b97756decb7bf0e26dcf0e30a7a9aaf27f417c
      https://github.com/llvm/llvm-project/commit/24b97756decb7bf0e26dcf0e30a7a9aaf27f417c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopPeel.h
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
    M llvm/lib/Transforms/Utils/LoopPeel.cpp
    M llvm/test/Transforms/LoopUnroll/peel-last-iteration-expansion-cost.ll
    M llvm/test/Transforms/LoopUnroll/peel-last-iteration-with-constant-trip-count.ll
    M llvm/test/Transforms/LoopUnroll/peel-last-iteration-with-variable-trip-count.ll
    M llvm/test/Transforms/LoopUnroll/unroll-and-peel-last-iteration.ll

  Log Message:
  -----------
  [LoopPeel] Remove known trip count restriction when peeling last. (#140792)

Remove the restriction that the loop must be known to execute at least 2
iterations when peeling the last iteration. If we cannot prove at least
2 iterations are executed, a check and branch to skip the peeled loop is
inserted.

PR: https://github.com/llvm/llvm-project/pull/140792



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list