https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109471
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Component|c++ |tree-optimization
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I suppose both cases could be optimized the same, but we only do limited "IR
interpretation" and only as side-effect of optimizing scalarized code, not
simulated execution traces.
Needs some more investigation.
Can you please attach the source code?