[all-commits] [llvm/llvm-project] 8f2c7c: AMDGPU/PromoteAlloca: Refactor into analysis / com...

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Wed Dec 10 05:34:47 PST 2025


  Branch: refs/heads/users/nhaehnle/spr/main/138f5985
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f2c7cdc66a892cc9d69f38f1e2b9efc69d6a60d
      https://github.com/llvm/llvm-project/commit/8f2c7cdc66a892cc9d69f38f1e2b9efc69d6a60d
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2025-12-10 (Wed, 10 Dec 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    M llvm/test/CodeGen/AMDGPU/promote-alloca-negative-index.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-scoring.ll

  Log Message:
  -----------
  AMDGPU/PromoteAlloca: Refactor into analysis / commit phases

This change is motivated by the overall goal of finding alternative ways
to promote allocas to VGPRs. The current solution is effectively limited
to allocas whose size matches a register class, and we can't keep adding
more register classes. We have some downstream work in this direction,
and I'm currently looking at cleaning that up to bring it upstream.

This refactor paves the way to adding a third way of promoting allocas,
on top of the existing alloca-to-vector and alloca-to-LDS. Much of the
analysis can be shared between the different promotion techniques.

Additionally, the idea behind splitting the pass into an analysis
phase and a commit phase is that it ought to allow us to more easily make
better "big picture" decision about which allocas to promote how in the
future.

commit-id:138f5985



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list