[Attributor] Conditinoally delete fns
authorWilliam S. Moses <gh@wsmoses.com>
Mon, 22 Feb 2021 20:38:23 +0000 (15:38 -0500)
committerWilliam S. Moses <gh@wsmoses.com>
Sun, 28 Feb 2021 01:37:42 +0000 (20:37 -0500)
commitb077d82b00d81934c7c27ac89dd8b0e7f448bded
tree7627e398cdfa1f54974b29a486629fb1309a50b2
parent6afaea6682dc3b0eb7e125847934759be6d0fb5c
[Attributor] Conditinoally delete fns

Allow the attributor to delete functions only if requested

Differential Revision: https://reviews.llvm.org/D97238
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/live_called_from_dead.ll
llvm/test/Transforms/Attributor/ArgumentPromotion/live_called_from_dead_2.ll
llvm/test/Transforms/Attributor/IPConstantProp/dangling-block-address.ll
llvm/test/Transforms/Attributor/align.ll
llvm/test/Transforms/Attributor/liveness.ll
llvm/test/Transforms/Attributor/nodelete.ll [new file with mode: 0644]
llvm/test/Transforms/OpenMP/parallel_deletion_cg_update.ll