[Bug libstdc++/88971] Branch optimization inconsistency (missed optimization)

2019-01-22 Thread maratrus at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88971 --- Comment #7 from Marat Stanichenko --- (In reply to rguent...@suse.de from comment #6) > > Do you believe that compiler can do better in such situations? Or the > > current > > behaviour is perfectly valid and no improvements are really neede

[Bug libstdc++/88971] Branch optimization inconsistency (missed optimization)

2019-01-22 Thread maratrus at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88971 --- Comment #5 from Marat Stanichenko --- (In reply to Richard Biener from comment #1) > This is because it still needs to generate the std::string objects at the > caller Thank you very much for the comment! That is probably why I had to add a

[Bug c++/88971] New: Branch optimization inconsistency (missed optimization)

2019-01-22 Thread maratrus at mail dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: maratrus at mail dot ru Target Milestone: --- Created attachment 45490 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45490&action=edit A code that demonstrates different patt