[llvm] [InstCombine] Canonicalize `switch(X^C)` expressions to `switch(X)` (PR #143677)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 03:53:20 PDT 2025


================
@@ -171,9 +171,9 @@ case124:
 define i32 @trunc32to16(i32 %a0) #0 {
 ; ALL-LABEL: @trunc32to16(
 ; ALL:         switch i16
-; ALL-NEXT:    i16 63, label %sw.bb
-; ALL-NEXT:    i16 1, label %sw.bb1
-; ALL-NEXT:    i16 100, label %sw.bb2
+; ALL-NEXT:    i16 15767, label %sw.bb
+; ALL-NEXT:    i16 15785, label %sw.bb1
+; ALL-NEXT:    i16 15820, label %sw.bb2
----------------
nikic wrote:

Can you please pre-commit a regeneration of this test file?

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


More information about the llvm-commits mailing list