aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2023-11-07 15:29:41 +0100
committerGitHub <noreply@github.com>2023-11-07 15:29:41 +0100
commit5db63d29fdc1fbf301c3d010d6e00e004d82fcdc (patch)
tree869210fe20c6bfea75efaca4f6667f5bd461848f /clang/lib/CodeGen/CodeGenModule.cpp
parent7c636728c0fc18fc79831bfc3cdf41841b9b517c (diff)
downloadllvm-5db63d29fdc1fbf301c3d010d6e00e004d82fcdc.zip
llvm-5db63d29fdc1fbf301c3d010d6e00e004d82fcdc.tar.gz
llvm-5db63d29fdc1fbf301c3d010d6e00e004d82fcdc.tar.bz2
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions