[llvm] [DAG] Generalize fold (not (neg x)) -> (add X, -1) (PR #154348)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 29 01:10:11 PDT 2025
================
@@ -896,12 +896,12 @@ define i64 @opaque_constant(i1 %cond, i64 %x) {
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
; X86-NEXT: movzbl {{[0-9]+}}(%esp), %eax
-; X86-NEXT: movl %eax, %edx
-; X86-NEXT: andl $1, %edx
-; X86-NEXT: negl %edx
-; X86-NEXT: andl $1, %edx
-; X86-NEXT: decl %eax
-; X86-NEXT: andl $1, %eax
+; X86-NEXT: andl $1, %eax
+; X86-NEXT: negl %eax
+; X86-NEXT: movl %eax, %edx
+; X86-NEXT: andl $1, %edx
+; X86-NEXT: notl %eax
+; X86-NEXT: andl $1, %eax
----------------
RKSimon wrote:
why is there a diff on seemingly identical lines? weird whitespace change?
https://github.com/llvm/llvm-project/pull/154348
More information about the llvm-commits
mailing list