[all-commits] [llvm/llvm-project] ac7161: [LoopUtils] Mark createMinMaxOp's new select with ...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Tue Jun 9 23:02:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac7161671cc3d64e104fa37f75f12c60150bdb1d
      https://github.com/llvm/llvm-project/commit/ac7161671cc3d64e104fa37f75f12c60150bdb1d
  Author: Madhur Amilkanthwar <madhura at nvidia.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    A llvm/test/Transforms/LoopVectorize/minmax-reduction-unknown-prof.ll

  Log Message:
  -----------
  [LoopUtils] Mark createMinMaxOp's new select with unknown branch weights (#201750)

`createMinMaxOp()` lowers an FP min/max reduction to a freshly built
fcmp+select. That select is not derived from any existing branch, so it
carries no real profile data, and prof-verify reports a "select
annotation missing" failure. Mark the synthesized select's branch
weights as explicitly unknown when the enclosing function is profiled,
guarded by the existing profcheck-disable-metadata-fixes option.

Add a unit test covering the profiled and non-profiled cases.



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