[llvm] [AMDGPU] Optimize DPP for fmin/fmax functions (PR #195282)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 11:18:22 PDT 2026
================
@@ -489,6 +490,44 @@ static bool isIdentityValue(unsigned OrigMIOp, MachineOperand *OldOpnd) {
if (OldOpnd->getImm() == 1)
return true;
break;
+ case AMDGPU::V_MIN_F32_e32:
+ case AMDGPU::V_MIN_F32_e64:
+ if (static_cast<uint32_t>(OldOpnd->getImm()) == /*+inf=*/0x7F800000)
----------------
shiltian wrote:
I suppose we can actually use `std::numeric_limits` here, like the other cases?
https://github.com/llvm/llvm-project/pull/195282
More information about the llvm-commits
mailing list