diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-05-27 16:47:36 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-05-31 10:43:13 +0100 |
commit | 2b37c405cc18019ea5056a63fa65f839a4890b50 (patch) | |
tree | 1fb18ce915c8034cf02afd302d3dccad30fffa4c /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 7161bb87c914684562bfb20fec7d60e533150f7a (diff) | |
download | llvm-2b37c405cc18019ea5056a63fa65f839a4890b50.zip llvm-2b37c405cc18019ea5056a63fa65f839a4890b50.tar.gz llvm-2b37c405cc18019ea5056a63fa65f839a4890b50.tar.bz2 |
[RISCV] Scale scalably-typed split argument offsets by VSCALE
This patch fixes a bug in lowering scalable-vector types in RISC-V's
main calling convention. When scalable-vector types are split and passed
indirectly, the target is responsible for scaling the offset --
initially set to the known-minimum store size -- by the scalable factor.
Before this we were issuing overlapping loads or stores to the different
parts, leading to incorrect codegen.
Credit to @HsiangKai for spotting this.
Reviewed By: HsiangKai
Differential Revision: https://reviews.llvm.org/D103262
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions