[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||ice-checking
 CC||rguenth at gcc dot gnu.org

--- Comment #6 from Andrew Pinski  ---
Oh yes this is introduced by Richi's extra checking for TYPE_PRECISION .

>From tree.cc:

  if (TYPE_PRECISION (subt) > TYPE_PRECISION (expt))
return exp;

Maybe type_element_precision here ...

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Keywords|needs-reduction |ice-on-valid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2023-11-03

--- Comment #5 from Andrew Pinski  ---
Reduced C (and C++) code:
```
struct GdkRGBA2 {
  double a[4];
};
struct GdkRGBA3 {
  float a[4];
};
struct GdkRGBA3 f(struct GdkRGBA2 *color) {
  struct GdkRGBA3 t1;
  for(int i = 0; i < 4; i++)
t1.a[i] = color->a[i];
  struct GdkRGBA3 t2;
  for(int i = 0; i < 4; i++)
  {
float tmp = t1.a[i];
if (__builtin_isnan(tmp))
t2.a[i] = tmp;
  }
  return t2;
}

```

It is related to unord folding with convert on a vector type.

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

--- Comment #4 from Andrew Pinski  ---
(In reply to Sam James from comment #3)
> (In reply to Sam James from comment #2)
> > Created attachment 56504 [details]
> > Hti5.cpp.ii
> > 
> > Kostadin started a reduction earlier and got this. It needs some cleaning 
> > up.
> 
> btw, his was reduced from the same original problem but using a unity build
> file

My reduction so far looks very similar.

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

--- Comment #3 from Sam James  ---
(In reply to Sam James from comment #2)
> Created attachment 56504 [details]
> Hti5.cpp.ii
> 
> Kostadin started a reduction earlier and got this. It needs some cleaning up.

btw, his was reduced from the same original problem but using a unity build
file

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

--- Comment #2 from Sam James  ---
Created attachment 56504
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56504=edit
Hti5.cpp.ii

Kostadin started a reduction earlier and got this. It needs some cleaning up.

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

--- Comment #1 from Andrew Pinski  ---
Reducing ...

[Bug tree-optimization/112369] [14 regression] ICE when building webkit-gtk with -march=raptorlake

2023-11-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112369

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |14.0
   Keywords||needs-reduction