[all-commits] [llvm/llvm-project] 997027: [AMDGPURewriteOutArguments] Don't use pointer elem...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 8 07:10:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 997027347db7c704d14d5901c828a0f249d30c3f
      https://github.com/llvm/llvm-project/commit/997027347db7c704d14d5901c828a0f249d30c3f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
    M llvm/test/CodeGen/AMDGPU/rewrite-out-arguments-address-space.ll
    M llvm/test/CodeGen/AMDGPU/rewrite-out-arguments.ll

  Log Message:
  -----------
  [AMDGPURewriteOutArguments] Don't use pointer element type

Instead of using the pointer element type, look at how the pointer
is actually being used in store instructions, while looking through
bitcasts. This makes the transform compatible with opaque pointers
and a bit more general.

It's worth noting that I have dropped the 3-vector to 4-vector
shufflevector special case, because this is now handled in a
different way: If the value is actually used as a 4-vector, then
we're directly going to use that type, instead of shuffling to a
3-vector in between.

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




More information about the All-commits mailing list