https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128983
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|VRP regression involving |[14/15/16/17 Regression]
|volatile operands |VRP regression involving
| |volatile operands
Keywords| |missed-optimization
Last reconfirmed| |2026-11-24
Status|UNCONFIRMED |NEW
Target Milestone|--- |14.5
Blocks| |85316
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
# RANGE [irange] unsigned int [4294967269, 4294967269][4294967272,
4294967272][4294967275, 4294967275][4294967278, 4294967278][4294967280,
4294967280][4294967282, 4294967282][4294967284, 4294967284]
_12 = _5 * _11;
# RANGE [irange] unsigned int [0, 1][+INF, +INF]
_15 = (unsigned int) _14;
_16 = _12 + _15;
Looks like we don't handle the above ranges in a decent way for PLUS_EXPR.
Back before ranger we could handle them.
# RANGE [4294967269, 4294967284]
_12 = _5 * _11;
# RANGE ~[2, 4294967294]
_15 = (unsigned int) _14;
# RANGE [4294967268, 4294967285]
_16 = _12 + _15;
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85316
[Bug 85316] [meta-bug] VRP range propagation missed cases