[llvm-branch-commits] [llvm] AMDGPU: Replace some float undef test uses with poison (PR #131090)

Pravin Jagtap via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 13 04:28:44 PDT 2025


================
@@ -37,7 +37,7 @@ bb2:
 define amdgpu_kernel void @preserve_condition_undef_flag(float %arg, i32 %arg1, float %arg2) {
 bb0:
   %tmp = icmp sgt i32 %arg1, 4
-  %undef = call i1 @llvm.amdgcn.class.f32(float undef, i32 undef)
+  %undef = call i1 @llvm.amdgcn.class.f32(float poison, i32 undef)
----------------
pravinjagtap wrote:

second undef is needed here?

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


More information about the llvm-branch-commits mailing list