[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-07-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0 Status|ASSIGNED

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #12 from Andrew Pinski --- (In reply to Andrew Pinski from comment #11) > What is interesting is I tested with the patches I have for PR 106164 which > should fix this but does not. If I try it out manually forwprop does catch > it

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #11 from Andrew

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #9) > Actually this is not optimized all the way in the end. > For greater3way, we still get: > _8 = _5 > _6; > _7 = _5 >= _6; > _2 = _7 & _8; > > This should

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Andrew Pinski changed: What|Removed |Added Target Milestone|14.0|--- Status|RESOLVED

[Bug tree-optimization/105903] Missed optimization for __synth3way

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

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-06-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Bug 105903 depends on bug 89263, which changed state. Bug 89263 Summary: Simplify bool expression to OR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263 What|Removed |Added

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-05-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #7 from Andrew Pinski --- The patch which fixes PR 89263 also fixes this one.

[Bug tree-optimization/105903] Missed optimization for __synth3way

2023-05-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Bug 105903 depends on bug 96923, which changed state. Bug 96923 Summary: Failure to optimize a select-related bool pattern to or+not https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96923 What|Removed |Added

[Bug tree-optimization/105903] Missed optimization for __synth3way

2022-07-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > After my patches for PR 96923 (and PR 100864), we get: > > > _22 = _16 > _17; > ... (some dead statements that PHI-OPT adds due to match and simplify) >

[Bug tree-optimization/105903] Missed optimization for __synth3way

2022-07-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #5 from Andrew Pinski --- After my patches for PR 96923 (and PR 100864), we get: _22 = _16 > _17; ... (some dead statements that PHI-OPT adds due to match and simplify) _8 = _16 >= _17; _13 = _8 & _22; But there is nothing

[Bug tree-optimization/105903] Missed optimization for __synth3way

2022-07-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #4 from Andrew Pinski --- Created attachment 53237 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53237=edit testcase Even though it was included in comment #0, I am attaching it as it easier to figure out what the testcase

[Bug tree-optimization/105903] Missed optimization for __synth3way

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

[Bug tree-optimization/105903] Missed optimization for __synth3way

2022-06-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 --- Comment #2 from luoxhu at gcc dot gnu.org --- diff --git a/gcc/match.pd b/gcc/match.pd index 4a570894b2e..f6b5415a351 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -5718,6 +5718,22 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (bit_xor

[Bug tree-optimization/105903] Missed optimization for __synth3way

2022-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105903 Andrew Pinski changed: What|Removed |Added Component|c++ |tree-optimization