[llvm] 7084fb1 - [GVN] Fix test case for convergent calls
    Jay Foad via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May 19 08:16:58 PDT 2023
    
    
  
Author: Jay Foad
Date: 2023-05-19T16:15:06+01:00
New Revision: 7084fb1e28443411bf5af204ba98f9429fce9b87
URL: https://github.com/llvm/llvm-project/commit/7084fb1e28443411bf5af204ba98f9429fce9b87
DIFF: https://github.com/llvm/llvm-project/commit/7084fb1e28443411bf5af204ba98f9429fce9b87.diff
LOG: [GVN] Fix test case for convergent calls
Without "willreturn" this did not get as far as testing the convergent
handling in GVN.
Added: 
    
Modified: 
    llvm/test/Transforms/GVN/pre-skip-convergent.ll
Removed: 
    
################################################################################
diff  --git a/llvm/test/Transforms/GVN/pre-skip-convergent.ll b/llvm/test/Transforms/GVN/pre-skip-convergent.ll
index 6ccc818746048..8d384f2d803ab 100644
--- a/llvm/test/Transforms/GVN/pre-skip-convergent.ll
+++ b/llvm/test/Transforms/GVN/pre-skip-convergent.ll
@@ -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
        
    
    
More information about the llvm-commits
mailing list