[all-commits] [llvm/llvm-project] 624af9: [MemCpyOpt] Port to MemorySSA

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Dec 1 08:58:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 624af932a808b363a888139beca49f57313d9a3b
      https://github.com/llvm/llvm-project/commit/624af932a808b363a888139beca49f57313d9a3b
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/MemCpyOptimizer.h
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/callslot.ll
    M llvm/test/Transforms/MemCpyOpt/invariant.start.ll
    M llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll
    M llvm/test/Transforms/MemCpyOpt/memcpy.ll
    M llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll
    M llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll
    M llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll
    M llvm/test/Transforms/MemCpyOpt/stackrestore.ll

  Log Message:
  -----------
  [MemCpyOpt] Port to MemorySSA

This is a straightforward port of MemCpyOpt to MemorySSA following
the approach of D26739. MemDep queries are replaced with MSSA queries
without changing the overall structure of the pass. Some care has
to be taken to account for differences between these APIs
(MemDep also returns reads, MSSA doesn't).

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




More information about the All-commits mailing list