public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102794] New: [12 Regression] missing vrp in evrp dealing with casts and ands
@ 2021-10-16  4:49 pinskia at gcc dot gnu.org
  2021-10-16  4:50 ` [Bug tree-optimization/102794] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-16  4:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102794
           Summary: [12 Regression] missing vrp in evrp dealing with casts
                    and ands
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
void foo(void);
int main() {
  int b = 0;
  int a = -100;
  for (; a; ++a) {
    unsigned short d = a;
    if (!(b | d) && d)
      foo();
  }
  return 0;
}

--- CUT ----
This used to be optimized during evrp in 11.1.0/11.2.0 but trunk evrp does not.
This is reduced from PR 102703 but is related issue though different.

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

end of thread, other threads:[~2021-10-22 21:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16  4:49 [Bug tree-optimization/102794] New: [12 Regression] missing vrp in evrp dealing with casts and ands pinskia at gcc dot gnu.org
2021-10-16  4:50 ` [Bug tree-optimization/102794] " pinskia at gcc dot gnu.org
2021-10-16  5:01 ` pinskia at gcc dot gnu.org
2021-10-16  7:07 ` aldyh at redhat dot com
2021-10-16  7:35 ` pinskia at gcc dot gnu.org
2021-10-22 21:39 ` 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).