[all-commits] [llvm/llvm-project] 86c95d: [test][InstCombine] Add tests for removing memcpy ...

Patrick Walton via All-commits all-commits at lists.llvm.org
Sun Oct 30 02:46:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86c95dca5c1b09d4184e90c18a53fe6384d94fba
      https://github.com/llvm/llvm-project/commit/86c95dca5c1b09d4184e90c18a53fe6384d94fba
  Author: Patrick Walton <pcwalton at fb.com>
  Date:   2022-10-30 (Sun, 30 Oct 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/memcpy-from-global.ll

  Log Message:
  -----------
  [test][InstCombine] Add tests for removing memcpy to an alloca that is passed to a readonly nocapture function parameter, in preparation for D136822.

This commit adds tests to Transforms/InstCombine/memcpy-from-global.ll that
test various situations involving memcpy from a constant to an alloca that is
then passed to function parameters with various attributes. The forthcoming
D136822 allows InstCombine to remove these memcpys if they're passed to a
single readonly nocapture parameter.

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




More information about the All-commits mailing list