public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112402] New: [11/12/13/14 Regression] Path splitting causes if-conversion miss
@ 2023-11-06  6:53 pinskia at gcc dot gnu.org
  2023-11-06  6:53 ` [Bug tree-optimization/112402] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-06  6:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112402
           Summary: [11/12/13/14 Regression] Path splitting causes
                    if-conversion miss
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
            Blocks: 94274
  Target Milestone: ---

Similar to PR 68541 except instead of having a diamond, we just have a
triangle.

Testcase:
```
int
foo(signed char *p, int n)
{
  int s = 0;
  int i;

  for (i = 0; i < n; i++) {
    int t;
    if (p[i] >= 0)
      t=1;
    else
      t=-1;
    s+=t;
  }

  return s;
}
```

I noticed this while working on fixing PR 94274.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94274
[Bug 94274] fold phi whose incoming args are defined from binary operations

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

end of thread, other threads:[~2024-03-07 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06  6:53 [Bug tree-optimization/112402] New: [11/12/13/14 Regression] Path splitting causes if-conversion miss pinskia at gcc dot gnu.org
2023-11-06  6:53 ` [Bug tree-optimization/112402] " pinskia at gcc dot gnu.org
2023-11-06  8:37 ` rguenth at gcc dot gnu.org
2023-11-07  3:27 ` pinskia at gcc dot gnu.org
2023-11-09 20:25 ` pinskia at gcc dot gnu.org
2024-03-07 21:03 ` law 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).