https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110389
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Target Milestone|--- |12.4 Ever confirmed|0 |1 Summary|wrong code at -Os and -O2 |[12/13/14 Regression] wrong |with "-fno-tree-ch |code at -Os and -O2 with |-fno-expensive-optimization |"-fno-tree-ch |s -fno-ivopts |-fno-expensive-optimization |-fno-tree-loop-ivcanon" on |s -fno-ivopts |x86_64-linux-gnu |-fno-tree-loop-ivcanon" on | |x86_64-linux-gnu Last reconfirmed| |2023-06-24 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Something goes really wrong in DOM3. _7 = e.5_26 + 1; if (_7 <= 2) goto <bb 3>; [89.57%] else goto <bb 8>; [10.43%] is optimized to always true.