[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2023-10-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2023-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #21 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:29a4453c7b8a86d242dab89b9e4d222749fd911e commit r14-4661-g29a4453c7b8a86d242dab89b9e4d222749fd911e Author: Andrew Pinski Date:

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2023-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2023-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #19 from Andrew Pinski --- Created attachment 56119 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56119=edit testcase from the original attachment For easier access, I posting this here so don't need to untar the file.

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2021-11-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2021-11-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added Attachment #26645|0 |1 is obsolete|

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2021-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #16 from Andrew Pinski --- The only patch which is needed now: diff --git a/gcc/match.pd b/gcc/match.pd index 37c5be9e5f4..ca6c9eff624 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -4729,10 +4729,11 @@ DEFINE_INT_AND_FLOAT_ROUND_FN

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #15 from Andrew

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2016-01-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #14 from Andrew Pinski

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2014-10-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Bug 31531 depends on bug 15459, which changed state. Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459 What|Removed |Added

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-13 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #13 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-14 03:59:12 UTC --- I committed the branch to the git only branch pinskia/treecombine. The only regression is gcc.target/i386/umod-3.c. This is not really a regression but

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #9 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-12 22:58:41 UTC --- (In reply to comment #8) forwprop already handles: int f(int a) { int b = ~a; return b0; } It just needs to handle: int f(unsigned a) { int

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #10 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-13 00:44:11 UTC --- I have a patch which adds this optimization to fold. And a partial patch which adds some of it to forwprop but that fails because we have to create a temp

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #11 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-13 06:30:29 UTC --- I have a full patch now which also handles PR 14792 once that folding is included in fold.

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #12 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-13 07:46:45 UTC --- Created attachment 26645 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26645 Patch which fixes the problem (well the fold-const.c is really only needed

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-12 04:35:53 UTC --- The shortest testcase for the problem function: int isnegative_optimized_4(unsigned int X) { int result; // Y is the conditional expression of if-else.

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

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

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2012-02-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 --- Comment #8 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-12 04:39:01 UTC --- forwprop already handles: int f(int a) { int b = ~a; return b0; } It just needs to handle: int f(unsigned a) { int b = ~a; return b0; }

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2011-07-18 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31531 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||TREE ---

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2007-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-04-15 06:43 --- There are a couple of ways of fixing this bug, folding while going out of ssa. Doing a tree combined which is PR 15459. Or the patch which I attached. -- pinskia at gcc dot gnu dot org changed:

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2007-04-10 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-10 19:17 --- What the real issue is that we don't fold !(x = 0) into x 0 before expanding. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/31531] A microoptimization of isnegative of signed integer

2007-04-10 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-10 19:20 --- A quick patch like: Index: expr.c === --- expr.c (revision 123691) +++ expr.c (working copy) @@ -6828,7 +6828,7 @@ tree type; int