[all-commits] [llvm/llvm-project] 2fa153: AMDGPU/GlobalISel: Start legalizing minimumnum and...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed May 21 06:50:02 PDT 2025


  Branch: refs/heads/users/arsenm/global-isel/start-legalizing-minimumnum-maximumnum
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fa15306c4c6f2017399e6ba9e227bf2ad0eb5bb
      https://github.com/llvm/llvm-project/commit/2fa15306c4c6f2017399e6ba9e227bf2ad0eb5bb
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/maximumnum.ll
    M llvm/test/CodeGen/AMDGPU/minimumnum.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Start legalizing minimumnum and maximumnum

This is the bare minimum to get the intrinsic to compile for AMDGPU,
and it's not optimal. We need to follow along closer with the existing
G_FMINNUM/G_FMAXNUM with custom lowering to handle the IEEE=0 case better.

Just re-use the existing lowering for the old semantics for
G_FMINNUM/G_FMAXNUM. This does not change G_FMINNUM/G_FMAXNUM's treatment,
nor try to handle the general expansion without an underlying min/max
variant (or with G_FMINIMUM/G_FMAXIMUM).



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