llvm-reduce: Fix invalid reductions with llvm.used
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Dec 2022 17:12:39 +0000 (12:12 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Dec 2022 20:06:22 +0000 (15:06 -0500)
commitaa9bdd50c25aa6a6dc58f2af397bdfcfad417244
treeba5e7a17e5190288f11c331b4d13909f1a1ffcdc
parent827fb6c38ca59236e634f69a497a71fe94e3e99b
llvm-reduce: Fix invalid reductions with llvm.used

Fixes issue 59413.
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
llvm/lib/Transforms/Utils/ModuleUtils.cpp
llvm/test/tools/llvm-reduce/remove-functions-used.ll [new file with mode: 0644]
llvm/test/tools/llvm-reduce/remove-global-used.ll [new file with mode: 0644]
llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp