[llvm] [X86] Fix commuteSelect miscompile with double-used condition value (PR #219436)
Timur Golubovich via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:20:32 PDT 2026
================
@@ -52,3 +52,70 @@ exit:
store <16 x float> %res_max, ptr %pMax, align 64
ret void
}
+
+; Verify that commuteSelect does not miscompile when the inverted setcc already
+; exists (CSE). Both icmp eq and icmp ne are present so getSetCCInverse must
+; not create an infinite loop or corrupt operands.
+
+define <8 x i32> @commute_select_existing_inverse_cmp(<8 x i32> %src) {
----------------
timurgol007 wrote:
@RKSimon, addressed
https://github.com/llvm/llvm-project/pull/219436
More information about the llvm-commits
mailing list