[all-commits] [llvm/llvm-project] d1cacd: [MemCpyOpt] Teach memcpyopt to handle loads from t...

darkbuck via All-commits all-commits at lists.llvm.org
Fri Aug 6 09:44:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1cacd59281937fccc682babbb8a259a6aa79c68
      https://github.com/llvm/llvm-project/commit/d1cacd59281937fccc682babbb8a259a6aa79c68
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll
    M llvm/test/Transforms/MemCpyOpt/memcpy.ll
    M llvm/test/Transforms/MemCpyOpt/memmove.ll
    M llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll

  Log Message:
  -----------
  [MemCpyOpt] Teach memcpyopt to handle loads from the constant memory.

- Loads from the constant memory (either explicit one or as the source
  of memory transfer intrinsics) won't alias any stores.

Reviewed By: asbirlea, efriedma

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




More information about the All-commits mailing list