https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111036
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:8c0458505a9b1b276fbad81d20849b88eda12d24 commit r16-7113-g8c0458505a9b1b276fbad81d20849b88eda12d24 Author: Richard Biener <[email protected]> Date: Wed Jan 28 10:55:56 2026 +0100 ipa/111036 - strip nop conversions around __builtin_constant_p arguments The PR is about inconsistent behavior wrt inline predicate analysis and later folding of __builtin_constant_p which ultimatively results from fold_builtin_constant_p stripping nops off its argument but this not being done on GIMPLE. The following adds a match.pd pattern for this. PR ipa/111036 * match.pd (__builtin_constant_p ((T)x)): Strip nop-conversions from __builtin_constant_p arguments. * gcc.dg/torture/pr111036.c: New testcase.
