[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2021-08-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0 Resolution|---

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2019-03-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #7 from Richard Biener --- A match.pd rule should be reasonably easy to write. Beware that ~a is not undefined but -a - 1 might be if it overflows. That is (simplify (bit_not (minus INTEGER_CST@0 @1)) (plus @1 (minus (negate

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2012-02-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-26 00:49:54 UTC --- (In reply to comment #5) I think def scanning is ok, but all SSA names should be valueized via a hook first. I wrote up something quickly (but I want to

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2012-02-24 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #5 from rguenther at suse dot de rguenther at suse dot de 2012-02-24 08:38:19 UTC --- On Thu, 23 Feb 2012, pinskia at gcc dot gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #4 from Andrew Pinski

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2012-02-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2012-02-23 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #3 from rguenther at suse dot de rguenther at suse dot de 2012-02-23 08:47:55 UTC --- On Thu, 23 Feb 2012, pinskia at gcc dot gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 Andrew Pinski pinskia at gcc dot

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2012-02-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516 --- Comment #4 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-23 22:15:05 UTC --- Maybe get away with these old-stylish names ('tree' and 'fold') and make it match reality, gimple-ssa-combine.c ;) That sounds like a good idea. I have

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2008-09-13 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516

[Bug rtl-optimization/37516] ~(-2 - a) is not being optimized into a + 1

2008-09-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-14 04:56 --- That is I found this with the patch for PR 37451 included but this does not need that patch to show the issue really. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37516