[all-commits] [llvm/llvm-project] 6518b7: [ExpandMemCmp] Properly constant-fold all compares.

Clement Courbet via All-commits all-commits at lists.llvm.org
Mon Mar 9 02:41:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6518b72f93f5c2d46f1f0866ff44f65b6ad64af2
      https://github.com/llvm/llvm-project/commit/6518b72f93f5c2d46f1f0866ff44f65b6ad64af2
  Author: Clement Courbet <courbet at google.com>
  Date:   2020-03-09 (Mon, 09 Mar 2020)

  Changed paths:
    M llvm/lib/CodeGen/ExpandMemCmp.cpp
    M llvm/test/CodeGen/PowerPC/memCmpUsedInZeroEqualityComparison.ll
    M llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
    M llvm/test/CodeGen/X86/memcmp-optsize.ll
    M llvm/test/CodeGen/X86/memcmp-pgso.ll
    M llvm/test/CodeGen/X86/memcmp.ll
    M llvm/test/Transforms/ExpandMemCmp/X86/memcmp.ll

  Log Message:
  -----------
  [ExpandMemCmp] Properly constant-fold all compares.

Summary:
This gets rid of duplicated code and diverging behaviour w.r.t.
constants.
Fixes PR45086.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list