[llvm] [llvm] Remove `br i1 undef` from regression tests (PR #117292)

John Regehr via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 10:34:35 PST 2024


================
@@ -38,7 +42,7 @@ sw.bb:                                            ; preds = %entry
   unreachable
 
 sw.bb19:                                          ; preds = %entry
-  br i1 undef, label %if.then37, label %if.end50
+  br i1 false, label %if.then37, label %if.end50
----------------
regehr wrote:

Lee, as a matter of policy I think you should just replace undef with fresh function parameters instead of true or false. let's not make the optimizer's job any easier than we have to.

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


More information about the llvm-commits mailing list