[GVN] Fix test case for convergent calls
authorJay Foad <jay.foad@amd.com>
Fri, 19 May 2023 15:11:41 +0000 (16:11 +0100)
committerJay Foad <jay.foad@amd.com>
Fri, 19 May 2023 15:15:06 +0000 (16:15 +0100)
Without "willreturn" this did not get as far as testing the convergent
handling in GVN.

llvm/test/Transforms/GVN/pre-skip-convergent.ll

index 6ccc818..8d384f2 100644 (file)
@@ -30,6 +30,4 @@ merge:
   ret i32 %r0
 }
 
-declare i32 @llvm.convergent(i32) #0
-
-attributes #0 = { convergent nounwind readnone }
+declare i32 @llvm.convergent(i32) convergent nounwind readnone willreturn