[PATCH] D32373: [PartialInliner] Do not do partial inlining for functions with non-call references
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 21 14:56:26 PDT 2017
efriedma added inline comments.
================
Comment at: llvm/trunk/lib/Transforms/IPO/PartialInlining.cpp:104
+
+ if (!canAllUsesBeReplaced(F))
+ return nullptr;
----------------
Can you just call Function::hasAddressTaken instead?
Repository:
rL LLVM
https://reviews.llvm.org/D32373
More information about the llvm-commits
mailing list