[all-commits] [llvm/llvm-project] 28b505: [AMDGPU] Fix PromoteAlloca size check of alloca fo...
bcahoon via All-commits
all-commits at lists.llvm.org
Mon Nov 20 05:58:02 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28b5054751899c9e96c2f42f0f91f1a3d73f0381
https://github.com/llvm/llvm-project/commit/28b5054751899c9e96c2f42f0f91f1a3d73f0381
Author: bcahoon <59846893+bcahoon at users.noreply.github.com>
Date: 2023-11-20 (Mon, 20 Nov 2023)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
M llvm/test/CodeGen/AMDGPU/promote-alloca-subvecs.ll
Log Message:
-----------
[AMDGPU] Fix PromoteAlloca size check of alloca for store (#72528)
When storing a subvector, too many element were written when the
size of the alloca is smaller than the size of the vector store.
This patch checks for the minimum of the alloca vector and the
store vector to determine the number of elements to store.
More information about the All-commits
mailing list