public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111282] New: `a & (b ^ ~a)` (or `a & ~(a ^ b)`) not optimized to `a & b` in gimple
@ 2023-09-04  6:03 pinskia at gcc dot gnu.org
  2023-09-04  6:04 ` [Bug tree-optimization/111282] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-04  6:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111282
           Summary: `a & (b ^ ~a)` (or `a & ~(a ^ b)`) not optimized to `a
                    & b` in gimple
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```
int f(int a, int b)
{
        return a & (b ^ ~a);
}
``
This should be optimized to `a & b` which it is on the RTL.

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

end of thread, other threads:[~2023-10-11 16:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-04  6:03 [Bug tree-optimization/111282] New: `a & (b ^ ~a)` (or `a & ~(a ^ b)`) not optimized to `a & b` in gimple pinskia at gcc dot gnu.org
2023-09-04  6:04 ` [Bug tree-optimization/111282] " pinskia at gcc dot gnu.org
2023-09-04  6:09 ` pinskia at gcc dot gnu.org
2023-09-04  7:26 ` pinskia at gcc dot gnu.org
2023-10-03  3:12 ` pinskia at gcc dot gnu.org
2023-10-10 20:03 ` pinskia at gcc dot gnu.org
2023-10-11  0:48 ` pinskia at gcc dot gnu.org
2023-10-11 16:46 ` cvs-commit at gcc dot gnu.org
2023-10-11 16:47 ` 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).