https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78427
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2016-11-21 CC| |amker.cheng at gmail dot com Component|c++ |tree-optimization Ever confirmed|0 |1 Known to fail| |7.0 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. IVOPTs job in this case (it's not simple loop reversal). Basically what is missing is a candidate for the desired IV, hopefully costs would then make that the cheapest in the end.