[Bug tree-optimization/127217] VRP does not honor TARGET_CAN_INLINE_P
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 4 15:28:07 GMT 2026
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.
More information about the Gcc-bugs
mailing list