[PATCH] D108971: [AMDGPU] Split entry basic block after alloca instructions.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 2 18:43:43 PDT 2021


arsenm added a comment.

In D108971#2978704 <https://reviews.llvm.org/D108971#2978704>, @hsmhsm wrote:

> - First,  the entry block splitting here should happen after all the allocas which are inserted at the beginning of the block before any other non-alloca instructions which actually make sense.

Allocas can appear anywhere in the block. They do not have to be clustered at the beginning. As long as it's in the entry block, it doesn't look like a dynamic alloca


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108971/new/

https://reviews.llvm.org/D108971



More information about the llvm-commits mailing list