[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2023-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #16 from Andrew Pinski --- Note starting in GCC 13 at -O3, we are able to optimize this all the way to: ``` int f () { int * _54; [local count: 114863531]: _54 = operator new (16); MEM [(char * {ref-all})_54] =

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #15 from Andrew Pinski --- This is interesting: _48 = _149 + 18446744073709551612; // _149 - 4 _63 = _55 + _48; _18 = _63 - _55; _19 = _18 /[ex] 4; _20 = (long unsigned int) _19; if (_55 != _63) _18 should be the same as

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Richard Biener changed: What|Removed |Added Target Milestone|7.5 |---

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-12-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Richard Biener changed: What|Removed |Added Target Milestone|7.4 |7.5

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-07-16 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Ramana Radhakrishnan changed: What|Removed |Added Known to fail||7.3.1 --- Comment #14 from

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-07-16 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Ramana Radhakrishnan changed: What|Removed |Added Known to work||6.4.1, 8.1.0 Known to fail|

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-07-16 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #12 from Ramana Radhakrishnan --- (In reply to Martin Sebor from comment #11) > *** Bug 86516 has been marked as a duplicate of this bug. *** (In reply to Paul Gotch from comment #10) > I'm afraid the changes made to libstdc++ have

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-07-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #11 from Martin Sebor --- *** Bug 86516 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-01-31 Thread paulg at chiark dot greenend.org.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #10 from Paul Gotch --- I'm afraid the changes made to libstdc++ have only solved part of the regression if you say something like std::vector v; if(c.size() > 0) c.resize(c.size() - 1); then you no longer get a warning in 7.3

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2018-01-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Richard Biener changed: What|Removed |Added Target Milestone|7.3 |7.4 --- Comment #9 from Richard Biener

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2017-12-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Martin Sebor changed: What|Removed |Added Keywords|diagnostic | Summary|[7/8 Regression]