[all-commits] [llvm/llvm-project] 17efa5: [InstSimplify] Optimize maximumnum and minimumnum ...

Lewis Crawford via All-commits all-commits at lists.llvm.org
Tue Oct 7 06:23:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17efa572c3827fe12e37d0f1f28d20a8e44890c7
      https://github.com/llvm/llvm-project/commit/17efa572c3827fe12e37d0f1f28d20a8e44890c7
  Author: Lewis Crawford <lcrawford at nvidia.com>
  Date:   2025-10-07 (Tue, 07 Oct 2025)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
    M llvm/test/CodeGen/AMDGPU/fneg-combines.new.ll
    M llvm/test/Transforms/InstCombine/AMDGPU/fmed3.ll
    M llvm/test/Transforms/InstSimplify/fminmax-folds.ll

  Log Message:
  -----------
  [InstSimplify] Optimize maximumnum and minimumnum (#139581)

Add support for the new maximumnum and minimumnum intrinsics in various
optimizations in InstSimplify.

Also, change the behavior of optimizing maxnum(sNaN, x) to simplify to
qNaN instead of x to better match the LLVM IR spec, and add more tests
for sNaN behavior for all 3 max/min intrinsic types.



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