This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Always pass the optimization level to the linker wrapper
ClosedPublic

Authored by jhuber6 on Aug 18 2023, 11:05 AM.

Details

Summary

The linker wrapper runs LTO internally, so it needs to know the
optimization level the user requested, if any. Previously this was only
done in -foffload-lto mode as we were assuming that this would enble
LTO. However, AMDGPU always performs LTO, and it's possible to run clang
on object files to link without passing this flag. So we should just
respect it always.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 18 2023, 11:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 11:05 AM
jhuber6 requested review of this revision.Aug 18 2023, 11:05 AM
jdoerfert accepted this revision.Aug 18 2023, 3:08 PM
This revision is now accepted and ready to land.Aug 18 2023, 3:08 PM
This revision was landed with ongoing or failed builds.Aug 18 2023, 3:10 PM
This revision was automatically updated to reflect the committed changes.