[all-commits] [llvm/llvm-project] 08dd04: AMDGPU: Use minnum instead of maxnum for fmed3 src...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Mon May 12 11:26:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 08dd0406c6c8b5418cd05528057bc64f6fa1d52f
https://github.com/llvm/llvm-project/commit/08dd0406c6c8b5418cd05528057bc64f6fa1d52f
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-05-12 (Mon, 12 May 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/AMDGPU/fmed3.ll
Log Message:
-----------
AMDGPU: Use minnum instead of maxnum for fmed3 src2-nan fold (#139531)
By the pseudocode in the ISA manual, if any input is a nan it acts
like min3, which will fold to min2 of the other operands. The other
cases fold to min, I'm not sure how this one was wrong.
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