[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2022-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 --- Comment #8 from Andrew Pinski --- Note the loop one looks like: if (input_4(D) != 0) goto ; [89.00%] else goto ; [11.00%] [local count: 105119324]: _1 = (unsigned int) input_4(D); _3 = -_1; value_2 = (int) _3;

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2021-11-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Mine, After PR 25290, the below match.pd pattern will just work :). > > (In reply to Marc Glisse from comment #3) > > and something that could be

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2021-06-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 --- Comment #6 from Andrew Pinski --- Note the loop based one is a little more complex due to the way GCC IR handles overflow being wrapping or undefined; I am just going to fix the case where overflow is defined as wrapping. The other case

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2021-05-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 Andrew Pinski changed: What|Removed |Added Depends on||25290 CC|

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2020-04-10 Thread bisqwit at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 --- Comment #4 from Joel Yliluoma --- Still confirmed on GCC 10 (Debian 10-20200324-1) 10.0.1 20200324 (experimental) [master revision 596c90d3559:023579257f5:906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536] Seems I lack the oomph to update the

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2014-03-11 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug tree-optimization/58195] Missed optimization opportunity when returning a conditional

2014-03-11 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195 --- Comment #3 from Marc Glisse glisse at gcc dot gnu.org --- This looks like the unary version of: http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00014.html and something that could be auto-generated from a pattern like: (cond (ne @0 0) (negate