[Attributor][FIX] Avoid deleting (internal) library functions
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 12 Jan 2023 09:06:41 +0000 (01:06 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 12 Jan 2023 09:17:23 +0000 (01:17 -0800)
commit27944bbbe7ade95ed38b147583fe6392d8d19f5c
treedb3462256b01e857624f785b02361636d4e5fff5
parent3909b60a3c87a85518d2846cdd00f6f985e4f7d8
[Attributor][FIX] Avoid deleting (internal) library functions

In CGSCC mode we cannot delete internal library functions, esp.
__kmpc_alloc_shared, or we trigger an assertion. While the assertion is
probably too narrow, we avoid deleting those unused functions for now to
unblock the AMDGPU buildbot.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/OpenMP/dead_lib_func.ll [new file with mode: 0644]