[all-commits] [llvm/llvm-project] 5db63d: [AMDGPU] PromoteAlloca: Handle load/store subvecto...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Tue Nov 7 06:29:57 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5db63d29fdc1fbf301c3d010d6e00e004d82fcdc
https://github.com/llvm/llvm-project/commit/5db63d29fdc1fbf301c3d010d6e00e004d82fcdc
Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
Date: 2023-11-07 (Tue, 07 Nov 2023)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
M llvm/test/CodeGen/AMDGPU/promote-alloca-loadstores.ll
M llvm/test/CodeGen/AMDGPU/promote-alloca-subvecs.ll
Log Message:
-----------
[AMDGPU] PromoteAlloca: Handle load/store subvectors using non-constant indexes (#71505)
I assumed indexes were always ConstantInts, but that's not always the
case. They can be other things as well. We can easily handle that by
just emitting an add and let InstSimplify do the constant folding for
cases where it's really a ConstantInt.
Solves SWDEV-429935
More information about the All-commits
mailing list