[llvm] [SimplifyCFG] Ensure selects have not been constant folded in `foldSwitchToSelect` (PR #161153)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 02:09:45 PDT 2025
================
@@ -755,6 +755,25 @@ bb3:
ret i1 %phi
}
+define i32 @negative_constfold_select() {
+; CHECK-LABEL: @negative_constfold_select(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: ret i32 poison
+;
+entry:
+ switch i32 poison, label %default [
----------------
nikic wrote:
Can you adjust this to avoid unconditional UB in the test?
https://github.com/llvm/llvm-project/pull/161153
More information about the llvm-commits
mailing list