[cfe-dev] Why optimize AvailableExternallyLinkage functions when codegenning?

Yaron Keren via cfe-dev cfe-dev at lists.llvm.org
Tue Sep 1 02:00:03 PDT 2015


AvailableExternallyLinkage functions are not emitted when codegenning, do
they really need to go through optimization passes?

I tried testing with

bool FPPassManager::runOnFunction(Function &F) {
  if (F.isDeclaration()* || F.hasAvailableExternallyLinkage()*)

which failed only one test, LLVM :: CodeGen/X86/hidden-vis-pic.ll, so there
is some issue which yet may be solved without doing all the passes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150901/ad0e104a/attachment.html>


More information about the cfe-dev mailing list