[all-commits] [llvm/llvm-project] d7b4b7: [AMDGPU] Handle memset users in PromoteAlloca

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Tue Mar 28 06:02:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7b4b76956e2da8b251c4e6121624477e1491211
      https://github.com/llvm/llvm-project/commit/d7b4b76956e2da8b251c4e6121624477e1491211
  Author: pvanhout <pierre.vanhoutryve at amd.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    A llvm/test/CodeGen/AMDGPU/promote-alloca-memset.ll

  Log Message:
  -----------
  [AMDGPU] Handle memset users in PromoteAlloca

Allows allocas with memset users to be promoted.

This is intended to prevent patterns such as `memset(&alloca, 0, sizeof(alloca))` (which I think can be emitted by frontends) from preventing a vectorization of allocas.

Fixes SWDEV-388784

Reviewed By: arsenm

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




More information about the All-commits mailing list