[AMDGPU] Split entry basic block after alloca instructions.
authorhsmahesha <mahesha.comp@gmail.com>
Wed, 1 Sep 2021 04:48:21 +0000 (10:18 +0530)
committerhsmahesha <mahesha.comp@gmail.com>
Wed, 1 Sep 2021 04:48:44 +0000 (10:18 +0530)
commit98f47131228cc73b5308e3cc6fd70375808594e3
tree19c4b5ec51198fdca2e07c65647b0491e2cf15d3
parent6a75041a1614af1ca787af5a18ea9ddbe4dd5c16
[AMDGPU] Split entry basic block after alloca instructions.

While initializing the LDS pointers within entry basic block of kernel(s), make
sure that the entry basic block is split after alloca instructions.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D108971
llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-split-entry-bb-after-alloca.ll [new file with mode: 0644]