[all-commits] [llvm/llvm-project] 5e4610: [LIR][profcheck] Reuse the loop's exit condition p...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed Nov 5 13:39:44 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e46103f1b521ccca3e95f27f0e742fa2a2826f7
      https://github.com/llvm/llvm-project/commit/5e46103f1b521ccca3e95f27f0e742fa2a2826f7
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2025-11-05 (Wed, 05 Nov 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    A llvm/test/Transforms/LoopIdiom/X86/preserve-profile.ll

  Log Message:
  -----------
  [LIR][profcheck] Reuse the loop's exit condition profile (#164523)

The idioms are described in https://reviews.llvm.org/D102116 and [https://reviews.llvm.org/D92754](https://reviews.llvm.org/D91038). In both cases, the way the loop is expressed changes, without changing its iteration count, which means we can reuse the original loop's branch probabilities.

Issue #147390



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