================ @@ -58,3 +58,15 @@ entry: %res = sub i64 2, %select_ ret i64 %res } + +define i64 @fold_binop_into_select_return_constant(i1 %c) { ---------------- dtcxzyw wrote: Sorry, it is fine for crash fixes. https://github.com/llvm/llvm-project/pull/97391