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

--- Comment #17 from wilco at gcc dot gnu.org ---
(In reply to PeteVine from comment #16)
> Also, I'd like to repeat the fact using -mcpu=cortex-a7 fixes the issue (no
> library calls present). 

Cortex-A7 has hardware division so it doesn't emit library calls.

> Incidentally, having run that A7 profiled binary on a Cortex-A53, I'm seeing
> a 10% hit compared to a vanilla A7 binary. Hopefully that's just an artifact
> of profiling a different CPU architecture.

Well that sounds like the same issue.

Note -fprofile-generate simple inserts counters in the generated code. In fact
the generated code is practically identical between Cortex-A5 and Cortex-A7.

Reply via email to