[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2023-04-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Bug 56223 depends on bug 101205, which changed state. Bug 101205 Summary: csinv does not have an zero_extend version https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101205 What|Removed |Added --

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-07-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #9 from Andrew Pinski --- Note I did submit a patch (https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574892.html) for: int abs0(int a, int b) { int c = a - b; if (c <= 0) c = b - a; return c; } But this is unrelated to your

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Andrew Pinski changed: What|Removed |Added Depends on||101205 --- Comment #8 from Andrew Pinski

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > I also noticed that factor_out_conditional_conversion has a similar issue > where the cast is inside both if and else part. I have a fix for that, though we don'

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #6 from Andrew Pinski --- Created attachment 50925 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50925&action=edit Patch which starts to fix this This is step 1 in fixing this bug, there are two or three more steps/patches.

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org --- C

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #4 from Andrew Pinski --- Note factor_out_conditional_conversion is a special case comment #3 really.

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #3 from Andrew Pinski --- There are ways of handling this case. I think the second one is better than the first. The first is mentioned here. The second would take: if (a) { foo(); b = d + e; } else { goo(); b = d -e; } an

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2016-07-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2013-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug tree-optimization/56223] Integer ABS is not recognized for more complicated pattern

2013-02-06 Thread ysrumyan at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56223 --- Comment #1 from Yuri Rumyantsev 2013-02-06 11:41:21 UTC --- Created attachment 29367 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29367 testcase to reproduce