[Bug tree-optimization/86141] C++ Related Optimization Problem

aaron_sami_abassi at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 23 02:06:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86141

--- Comment #17 from ASA <aaron_sami_abassi at hotmail dot com> ---
It would seem that the heuristics problem has something to do with the same
function being called more than once from main.

I conducted the following experiments:

* Repeating the call to DisplayView1Type
* Commenting the second call to DisplayViewType

And in each case when a specific function was called more than once, the
compiler refused to inline the function invocation from main.

In case this helps.


More information about the Gcc-bugs mailing list