summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2016-07-18 19:54:56 +0000
committerArtem Belevich <tra@google.com>2016-07-18 19:54:56 +0000
commit052b1ed2fd182115fe39abfb36c2615bf5948877 (patch)
tree48783b8085e37c209817e9357f4a2614c3179eb1 /clang/lib/Driver/Tools.cpp
parenta81a44ffd461464e0bc89c611a766eba019bff9b (diff)
downloadbcm5719-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/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud