[PATCH] D75175: [CallSiteInfo] Enable the call site info only for -g + optimizations

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 27 08:58:48 PST 2020


djtodoro added a comment.

In D75175#1895627 <https://reviews.llvm.org/D75175#1895627>, @dstenb wrote:

> One downside with this is that if you compile the compilation unit containing the caller with -O0, and the compilation unit containing the callee with optimizations enabled, it will not be possible to evaluate the entry values in the callee.


Yes, but this will restrict only call-site-info (`callSites:` MF attribute) production. The DWARF (tags for call_sites and call_site_params) was already controlled by the DISubprogram flag (all-calls-described), so I think with or without this that will be the same?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75175/new/

https://reviews.llvm.org/D75175





More information about the llvm-commits mailing list