aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJustin Lebar <justin.lebar@gmail.com>2020-10-14 09:30:05 -0700
committerJustin Lebar <justin.lebar@gmail.com>2020-10-14 11:15:30 -0700
commite9ac1869a82a37bd385fccd15c33599807cea3f4 (patch)
tree43dc5010404cefe425a80ea054541cfad34d55d3 /clang/lib/CodeGen/CodeGenModule.cpp
parent008c0ea6a4115101694aab0451c89754dee1a5de (diff)
downloadllvm-e9ac1869a82a37bd385fccd15c33599807cea3f4.zip
llvm-e9ac1869a82a37bd385fccd15c33599807cea3f4.tar.gz
llvm-e9ac1869a82a37bd385fccd15c33599807cea3f4.tar.bz2
Preserve param alignment in NVPTXLowerArgs pass.
NVPTXLowerArgs works as follows. * Create a regular alloca with alignment identical to arg. * Copy arg from param space (and ASC'ing it from generic AS first) to the alloca (it's still in generic AS). * Replace loads of arg with loads of alloca. The bug here is that we did not preserve the arg's alignment when loading from the alloca. The impact of this bug is that sometimes param loads would be lowered as a series of u8 loads, because we're incorrectly assuming everything has alignment 1. Differential Revision: https://reviews.llvm.org/D89404
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions