https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87869
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |arc* Component|c |middle-end --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this is a cost model issue. I suspect the tree level cost model does not take into account some things. One is const formation.