Currently OpenMPOpt will only check if a function is a kernel before deciding not to internalize it. Any uncalled function that gets internalized will be trivially dead in the module so this is unnnecessary.
Depends on D102423
Paths
| Differential D104890
[OpenMP] Prevent OpenMPOpt from internalizing uncalled functions ClosedPublic Authored by jhuber6 on Jun 24 2021, 5:45 PM.
Details Summary Currently OpenMPOpt will only check if a function is a kernel before deciding not to internalize it. Any uncalled function that gets internalized will be trivially dead in the module so this is unnnecessary. Depends on D102423
Diff Detail
Unit TestsFailed Event TimelineHerald added subscribers: ormris, guansong, hiraditya, yaxunl. · View Herald TranscriptJun 24 2021, 5:45 PM
Comment Actions Adding uncalled functions to SCC. This will make the module pass actually run on uncalled functions. This revision is now accepted and ready to land.Jun 28 2021, 10:52 AM This revision was landed with ongoing or failed builds.Jun 28 2021, 1:48 PM Closed by commit rG57ad2e106767: [OpenMP] Prevent OpenMPOpt from internalizing uncalled functions (authored by jhuber6). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 354858 llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/remove_globalization.ll
|
clang-tidy: warning: invalid case style for variable 'isCalled' [readability-identifier-naming]
not useful