https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127217
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
evrp doesn't inline it.
It uses inter-procedural value range optimization, so knows callee will return
a value in range [1,1] and so can replace it with a constant. That is not
inlining.
If you want to avoid any IPA optimizations, you need to use the noipa attribute
to prevent those.