[llvm] [AMDGPU] Adjust amdgpu fmax/fmin legalization (PR #202917)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 05:06:44 PDT 2026


================
@@ -8703,12 +8748,16 @@ SITargetLowering::lowerFMINIMUMNUM_FMAXIMUMNUM(SDValue Op,
   const MachineFunction &MF = DAG.getMachineFunction();
   const SIMachineFunctionInfo *Info = MF.getInfo<SIMachineFunctionInfo>();
   bool IsIEEEMode = Info->getMode().IEEE;
+  bool IsDivergent = Op.getNode()->isDivergent();
----------------
arsenm wrote:

Divergent shouldn't really factor into this? 

https://github.com/llvm/llvm-project/pull/202917


More information about the llvm-commits mailing list