diff options
author | Artem Belevich <tra@google.com> | 2016-07-18 19:54:56 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2016-07-18 19:54:56 +0000 |
commit | 052b1ed2fd182115fe39abfb36c2615bf5948877 (patch) | |
tree | 48783b8085e37c209817e9357f4a2614c3179eb1 /clang/lib/Driver/ToolChains.cpp | |
parent | a81a44ffd461464e0bc89c611a766eba019bff9b (diff) | |
download | bcm5719-llvm-052b1ed2fd182115fe39abfb36c2615bf5948877.tar.gz bcm5719-llvm-052b1ed2fd182115fe39abfb36c2615bf5948877.zip |
[NVPTX] Force minimum alignment of 4 for byval arguments of device-side functions.
Taking address of a byval variable in PTX is legal, but currently runs
into miscompilation by ptxas on sm_50+ (NVIDIA issue 1789042).
Work around the issue by enforcing minimum alignment on byval arguments
of device functions.
The change is a no-op on SASS level for sm_3x where ptxas already aligns
local copy by at least 4.
Differential Revision: https://reviews.llvm.org/D22428
llvm-svn: 275893
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
0 files changed, 0 insertions, 0 deletions