[all-commits] [llvm/llvm-project] 46a13a: [ExpandMemCmp] Properly expand `bcmp` to an equali...

Clement Courbet via All-commits all-commits at lists.llvm.org
Fri Apr 15 02:33:51 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46a13a0ef847dbe3226f4b3d8726ef25c8909293
  Author: Clement Courbet <courbet at google.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M llvm/lib/CodeGen/ExpandMemCmp.cpp
    M llvm/test/CodeGen/X86/memcmp-optsize-x32.ll
    M llvm/test/CodeGen/X86/memcmp-optsize.ll
    M llvm/test/CodeGen/X86/memcmp-pgso-x32.ll
    M llvm/test/CodeGen/X86/memcmp-pgso.ll
    M llvm/test/Transforms/ExpandMemCmp/X86/bcmp.ll

  Log Message:
  [ExpandMemCmp] Properly expand `bcmp` to an equality pattern.

Before that change, constant-size `bcmp` would miss an opportunity to generate
a more efficient equality pattern and would generate a -1/0-1 pattern

Differential Revision: https://reviews.llvm.org/D123849

More information about the All-commits mailing list