[PATCH] D94961: [OpenMP] Add OpenMP offloading toolchain for AMDGPU
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 1 08:21:06 PST 2021
JonChesterfield added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp:65
+ .Case("g", "1")
+ .Default("2");
+ }
----------------
JonChesterfield wrote:
> jdoerfert wrote:
> > To verify, O0 is not mapped to O2, correct?
> I think `opt -O0` is an error, though it does look like this will rewrite it to O2 instead. Which seems bad.
Suggest we drop the opt invocation. llvm-link is required for the case where multiple files are passed to clang as a single invocation, but I don't see why we need an opt invocation here. Passing the llvm-link'ed code to llc as-is, without this implicit lto style opt invocation, is probably a better default.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94961/new/
https://reviews.llvm.org/D94961
More information about the cfe-commits
mailing list