public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-24  6:09 ` pinskia at gcc dot gnu.org
  2021-05-24  6:10 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-24  6:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergey.ignatchenko at ithare dot c
                   |                            |om

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 85605 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
  2021-05-24  6:09 ` [Bug tree-optimization/89263] Simplify bool expression to OR pinskia at gcc dot gnu.org
@ 2021-05-24  6:10 ` pinskia at gcc dot gnu.org
  2021-07-20  6:15 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-24  6:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |25290
             Status|NEW                         |ASSIGNED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine.  Depends on work for PR 25290 though.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25290
[Bug 25290] PHI-OPT could be rewritten so that is uses match

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
  2021-05-24  6:09 ` [Bug tree-optimization/89263] Simplify bool expression to OR pinskia at gcc dot gnu.org
  2021-05-24  6:10 ` pinskia at gcc dot gnu.org
@ 2021-07-20  6:15 ` pinskia at gcc dot gnu.org
  2021-08-03 23:12 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-20  6:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gabravier at gmail dot com

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 99069 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-07-20  6:15 ` pinskia at gcc dot gnu.org
@ 2021-08-03 23:12 ` pinskia at gcc dot gnu.org
  2023-05-24  0:01 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 23:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-08-03 23:12 ` pinskia at gcc dot gnu.org
@ 2023-05-24  0:01 ` pinskia at gcc dot gnu.org
  2023-06-02 14:17 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-24  0:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 96923 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2023-05-24  0:01 ` pinskia at gcc dot gnu.org
@ 2023-06-02 14:17 ` pinskia at gcc dot gnu.org
  2023-06-02 19:19 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-02 14:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 110087 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2023-06-02 14:17 ` pinskia at gcc dot gnu.org
@ 2023-06-02 19:19 ` pinskia at gcc dot gnu.org
  2023-06-07  0:29 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-02 19:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 55245
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55245&action=edit
Patch where I need to add some more testcases

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2023-06-02 19:19 ` pinskia at gcc dot gnu.org
@ 2023-06-07  0:29 ` pinskia at gcc dot gnu.org
  2023-06-07  2:43 ` cvs-commit at gcc dot gnu.org
  2023-06-07  2:46 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-07  0:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2023-June/62
                   |                            |0829.html

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patch submitted:
https://gcc.gnu.org/pipermail/gcc-patches/2023-June/620829.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2023-06-07  0:29 ` pinskia at gcc dot gnu.org
@ 2023-06-07  2:43 ` cvs-commit at gcc dot gnu.org
  2023-06-07  2:46 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-07  2:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:64d90d06d2db43538c8a45adbb3d74842f7868ae

commit r14-1597-g64d90d06d2db43538c8a45adbb3d74842f7868ae
Author: Andrew Pinski <apinski@marvell.com>
Date:   Wed May 24 07:08:45 2023 +0000

    Add match patterns for `a ? onezero : onezero` where one of the two
operands are constant

    This adds a match pattern that are for boolean values
    that optimizes `a ? onezero : 0` to `a & onezero` and
    `a ? 1 : onezero` to `a | onezero`.

    This was reported a few times and I thought I would finally
    add the match pattern for this.

    This hits a few times in GCC itself too.

    Notes on the testcases:
    * phi-opt-2.c: This now is optimized to `a & b` in phiopt rather than
ifcombine
    * phi-opt-25b.c: The test part that was failing was parity which now gets
`x & y` treatment.
    * ssa-thread-21.c: there is no longer a threading opportunity, so need to
disable phiopt.
      Note PR 109957 is filed for the now missing optimization in that testcase
too.

    gcc/ChangeLog:

            PR tree-optimization/89263
            PR tree-optimization/99069
            PR tree-optimization/20083
            PR tree-optimization/94898
            * match.pd: Add patterns to optimize `a ? onezero : onezero` with
            one of the operands are constant.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/phi-opt-2.c: Adjust the testcase.
            * gcc.dg/tree-ssa/phi-opt-25b.c: Adjust the testcase.
            * gcc.dg/tree-ssa/ssa-thread-21.c: Disable phiopt.
            * gcc.dg/tree-ssa/phi-opt-27.c: New test.
            * gcc.dg/tree-ssa/phi-opt-28.c: New test.
            * gcc.dg/tree-ssa/phi-opt-29.c: New test.
            * gcc.dg/tree-ssa/phi-opt-30.c: New test.
            * gcc.dg/tree-ssa/phi-opt-31.c: New test.
            * gcc.dg/tree-ssa/phi-opt-32.c: New test.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug tree-optimization/89263] Simplify bool expression to OR
       [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2023-06-07  2:43 ` cvs-commit at gcc dot gnu.org
@ 2023-06-07  2:46 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-07  2:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89263

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |14.0

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-06-07  2:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-89263-4@http.gcc.gnu.org/bugzilla/>
2021-05-24  6:09 ` [Bug tree-optimization/89263] Simplify bool expression to OR pinskia at gcc dot gnu.org
2021-05-24  6:10 ` pinskia at gcc dot gnu.org
2021-07-20  6:15 ` pinskia at gcc dot gnu.org
2021-08-03 23:12 ` pinskia at gcc dot gnu.org
2023-05-24  0:01 ` pinskia at gcc dot gnu.org
2023-06-02 14:17 ` pinskia at gcc dot gnu.org
2023-06-02 19:19 ` pinskia at gcc dot gnu.org
2023-06-07  0:29 ` pinskia at gcc dot gnu.org
2023-06-07  2:43 ` cvs-commit at gcc dot gnu.org
2023-06-07  2:46 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).