[all-commits] [llvm/llvm-project] af9ee3: [HIP] fix long double size
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Tue Jun 14 18:58:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af9ee3357cec931af68a3a0bb83e82de977caa37
https://github.com/llvm/llvm-project/commit/af9ee3357cec931af68a3a0bb83e82de977caa37
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2022-06-14 (Tue, 14 Jun 2022)
Changed paths:
M clang/lib/Basic/Targets/AMDGPU.cpp
A clang/test/CodeGenCUDA/long-double.cu
Log Message:
-----------
[HIP] fix long double size
For amdgpu target long double type is the same as double type.
The width and align of long double type was incorrectly
overridden when copying aux target properties, which
caused assertion in codegen when emitting global
variables with long double type.
This patch fix that by saving and restoring width
and align of long double type.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D127771
Fixes: SWDEV-335515
More information about the All-commits
mailing list