[PATCH] D54183: [HIP] Change default optimization level to -O3

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 6 14:16:34 PST 2018


tra added a comment.

I'm not convinced that nvcc's behavior is a good guide for clang's defaults.

Considering that clang is not compatible with nvcc when it comes to command line options, whoever is using clang to compile CUDA already has to adjust command line options. Explicitly adding `-O3` during the process is, IMO, better than requiring everyone to be aware that if the input file is CUDA (or HIP), then clang would default to -O3.


https://reviews.llvm.org/D54183





More information about the cfe-commits mailing list