[all-commits] [llvm/llvm-project] 2a2071: [MemCpyOpt] move SrcAlloca to the entry if transfo...

Kohei Asano via All-commits all-commits at lists.llvm.org
Tue Sep 26 00:27:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a207128a76d3f7208860443d279d64ff51d644f
      https://github.com/llvm/llvm-project/commit/2a207128a76d3f7208860443d279d64ff51d644f
  Author: Kohei Asano <32860920+khei4 at users.noreply.github.com>
  Date:   2023-09-26 (Tue, 26 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/stack-move.ll

  Log Message:
  -----------
  [MemCpyOpt] move SrcAlloca to the entry if transformation is performed (#67226)

This is fixup for
https://github.com/llvm/llvm-project/pull/66618#discussion_r1328523770 .
This transformation checks whether allocas are static, if the
transformation is performed. This patch moves the SrcAlloca to the entry
of the BB when the optimization performed.




More information about the All-commits mailing list