[all-commits] [llvm/llvm-project] e760d0: AMDGPU/PromoteAlloca: Refactor into analysis / com...
Nicolai Hähnle via All-commits
all-commits at lists.llvm.org
Thu Dec 11 17:25:00 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e760d0619fe573113fe5a08cc101aafe9ed3a56e
https://github.com/llvm/llvm-project/commit/e760d0619fe573113fe5a08cc101aafe9ed3a56e
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: 2025-12-12 (Fri, 12 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 (#170512)
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.
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