[OpenMP] Prevent OpenMPOpt from internalizing uncalled functions
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 25 Jun 2021 00:42:31 +0000 (20:42 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Mon, 28 Jun 2021 20:47:53 +0000 (16:47 -0400)
commit57ad2e106767f298a0248a5894fcb3581f533f93
tree3a55226073cccc63fce6ba95f5ac1639f67f465b
parent5bc9cc1332aa042b68fb5efa9fb50eaaf2d54f79
[OpenMP] Prevent OpenMPOpt from internalizing uncalled functions

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

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D104890
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/remove_globalization.ll