https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87528
--- Comment #4 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Richard Biener from comment #3) > Can you point me to the source for which we generate the popcount call(s)? > It might be not final value replacement but instead code-generating a niter > analysis result. Sorry, the reference to final value replacement was just in order to draw a parallel. I was pointing out a famous historical precedent where GCC had to avoid replacing a cheap loop with a costly libgcc call.