[PATCH] D66155: [Attributor] Liveness for internal functions.
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 10:16:23 PDT 2019
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:1640
+ if (AssumedLiveBlocks.empty()) {
+ F.replaceAllUsesWith(UndefValue::get(F.getType()));
+ return ChangeStatus::CHANGED;
----------------
Add a new STATS_DECL... here to count number of dead internal functions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66155/new/
https://reviews.llvm.org/D66155
More information about the llvm-commits
mailing list