[all-commits] [llvm/llvm-project] fa2421: [MemCpyOpt] Forward `memcpy` based on the actual ...

DianQK via All-commits all-commits at lists.llvm.org
Fri Jul 12 07:58:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa2421392802025e842454a31ed50dbfab643130
      https://github.com/llvm/llvm-project/commit/fa2421392802025e842454a31ed50dbfab643130
  Author: DianQK <dianqk at dianqk.net>
  Date:   2024-07-12 (Fri, 12 Jul 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/lifetime.ll
    A llvm/test/Transforms/MemCpyOpt/memcpy-memcpy-offset.ll
    A llvm/test/Transforms/PhaseOrdering/memcpy-offset.ll

  Log Message:
  -----------
   [MemCpyOpt] Forward `memcpy` based on the actual copy memory location. (#87190)

Fixes #85560.

We can forward `memcpy` as long as the actual memory location being
copied have not been altered.

alive2: https://alive2.llvm.org/ce/z/q9JaHV



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list