[PATCH] D75519: [ExpandMemCmp] Properly constant-fold all compares.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 06:21:23 PST 2020


courbet marked an inline comment as done.
courbet added a comment.

Note that most test changes are NFC (just interleaving computations). I've highlighted the actual changes.



================
Comment at: llvm/test/CodeGen/X86/memcmp.ll:103
 ; X86-NEXT:    movzwl %ax, %eax
-; X86-NEXT:    movzwl %cx, %ecx
-; X86-NEXT:    subl %ecx, %eax
+; X86-NEXT:    addl $-12594, %eax # imm = 0xCECE
 ; X86-NEXT:    retl
----------------
This is the real change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75519/new/

https://reviews.llvm.org/D75519





More information about the llvm-commits mailing list