[all-commits] [llvm/llvm-project] cb41ee: [AMDGPU] Fix promote alloca with double use in a s...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Thu Feb 11 11:58:08 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb41ee92dab809b3389de286a51127723a35834d
      https://github.com/llvm/llvm-project/commit/cb41ee92dab809b3389de286a51127723a35834d
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

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

  Log Message:
  -----------
  [AMDGPU] Fix promote alloca with double use in a same insn

If we have an instruction where more than one pointer operands
are derived from the same promoted alloca, we are fixing it for
one argument and do not fix a second use considering this user
done.

Fix this by deferring processing of memory intrinsics until all
potential operands are replaced.

Fixes: SWDEV-271358

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




More information about the All-commits mailing list