https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111036
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:877ca05ff96f9f158934df0df16d883b727a4c08 commit r14-12436-g877ca05ff96f9f158934df0df16d883b727a4c08 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. (cherry picked from commit 8c0458505a9b1b276fbad81d20849b88eda12d24)
