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

Clement Courbet via All-commits all-commits at lists.llvm.org
Mon Mar 9 01:10:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f7e6f5f8e3046fd9a4528d77df3dfd458a9f437f
      https://github.com/llvm/llvm-project/commit/f7e6f5f8e3046fd9a4528d77df3dfd458a9f437f
  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/PowerPC/memcmpIR.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