diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2023-11-07 15:29:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 15:29:41 +0100 |
commit | 5db63d29fdc1fbf301c3d010d6e00e004d82fcdc (patch) | |
tree | 869210fe20c6bfea75efaca4f6667f5bd461848f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7c636728c0fc18fc79831bfc3cdf41841b9b517c (diff) | |
download | llvm-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