[Attributor] Liveness for internal functions.
commit26121ae4d047e142594bd400cd5215aafb6d8cbb
authorStefan Stipanovic <sstipanovic@s-energize.com>
Tue, 20 Aug 2019 23:16:57 +0000 (20 23:16 +0000)
committerStefan Stipanovic <sstipanovic@s-energize.com>
Tue, 20 Aug 2019 23:16:57 +0000 (20 23:16 +0000)
tree56031de72c3d91af7bbb50db4735178bc786b050
parent33c283adfd0b157af7edb2bcde065248ca3b8c22
[Attributor] Liveness for internal functions.

For an internal function, if all its call sites are dead, the body of the function is considered dead.

Reviewers: jdoerfert, uenoku

Subscribers: hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D66155

llvm-svn: 369470
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/align.ll
llvm/test/Transforms/FunctionAttrs/liveness.ll
llvm/test/Transforms/FunctionAttrs/read_write_returned_arguments_scc.ll