[llvm] AMDGPU: Migrate more tests away from undef (PR #131314)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 17 01:42:09 PDT 2025
================
@@ -128,13 +128,40 @@ define void @bitset_verifier_error() local_unnamed_addr #0 {
; SI-NEXT: ; %bb.1: ; %bb5
; SI-NEXT: .LBB6_2: ; %bb6
bb:
- %i = call float @llvm.fabs.f32(float undef) #0
+ %undef0 = freeze float poison
+ %i = call float @llvm.fabs.f32(float %undef0) #0
%i1 = bitcast float %i to i32
store i32 %i1, ptr addrspace(1) @gv
br label %bb2
bb2:
- %i3 = call float @llvm.fabs.f32(float undef) #0
+ %undef1 = freeze float poison
+ %i3 = call float @llvm.fabs.f32(float %undef1) #0
+ %i4 = fcmp fast ult float %i3, 0x3FEFF7CEE0000000
+ br i1 %i4, label %bb5, label %bb6
+
+bb5:
+ unreachable
+
+bb6:
+ unreachable
+}
+
+define void @bitset_verifier_error_poison() local_unnamed_addr #0 {
----------------
Pierre-vh wrote:
nit: Can't you remove the attribute and `local_unnamed_addr`?
https://github.com/llvm/llvm-project/pull/131314
More information about the llvm-commits
mailing list