[llvm] AMDGPU: Migrate more tests away from undef (PR #131314)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Mar 17 01:46:12 PDT 2025
    
    
  
================
@@ -538,7 +538,8 @@ if.then:                                          ; preds = %entry
   ret void
 
 if.then9:                                         ; preds = %entry
-  br i1 undef, label %sw.bb18, label %sw.bb
+  %undef = freeze i1 poison
----------------
arsenm wrote:
This is mostly trying to avoid perturbing codegen. Ideally would avoid using br on poison directly, but that breaks the direct branch on constant property some of these tests are relying on 
https://github.com/llvm/llvm-project/pull/131314
    
    
More information about the llvm-commits
mailing list