[all-commits] [llvm/llvm-project] 4d4f09: [clang][codegen] Skip adding default function attr...
darkbuck via All-commits
all-commits at lists.llvm.org
Wed Sep 16 11:10:40 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4d4f0922837de3f1aa9862ae8a8d941b3b6e5f78
https://github.com/llvm/llvm-project/commit/4d4f0922837de3f1aa9862ae8a8d941b3b6e5f78
Author: Michael Liao <michael.hliao at gmail.com>
Date: 2020-09-16 (Wed, 16 Sep 2020)
Changed paths:
M clang/lib/CodeGen/CodeGenAction.cpp
A clang/test/CodeGenCUDA/Inputs/device-lib-code.ll
A clang/test/CodeGenCUDA/dft-func-attr-skip-intrinsic.hip
Log Message:
-----------
[clang][codegen] Skip adding default function attributes on intrinsics.
- After loading builtin bitcode for linking, skip adding default
function attributes on LLVM intrinsics as their attributes are
well-defined and retrieved directly from internal definitions. Adding
extra attributes on intrinsics results in inconsistent result when
`-save-temps` is present. Also, that makes few optimizations
conservative.
Differential Revision: https://reviews.llvm.org/D87761
More information about the All-commits
mailing list