[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

Andrew Pinski  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |pinskia at gcc dot 
gnu.org
 Status|NEW |ASSIGNED
   Target Milestone|--- |12.0

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #8 from Andrew Pinski  ---
I will go look into this after a nap.

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #7 from Peter Bergner  ---
(In reply to Andrew Pinski from comment #5)
> Hmm, I fixed one like this yesterday. Are you sure it is not fixed?

Yes, I built with a trunk from this morning and just verified it still ICEs
with a new checkout (6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426).

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #6 from Andrew Pinski  ---
https://gcc.gnu.org/pipermail/gcc-cvs/2021-November/356905.html

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #5 from Andrew Pinski  ---
Hmm, I fixed one like this yesterday. Are you sure it is not fixed?

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

Peter Bergner  changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu.org

--- Comment #4 from Peter Bergner  ---
My bisect flagged the following commit as causing the ICE:

commit f98f373dd822b35c52356b753d528924e9f89678
Commit: Richard Biener 
CommitDate: Tue Nov 16 11:31:05 2021 +0100

tree-optimization/102880 - make PHI-OPT recognize more CFGs

This allows extra edges into the middle BB for the PHI-OPT
transforms using replace_phi_edge_with_variable that do not
end up moving stmts from that middle BB.  This avoids regressing
gcc.dg/tree-ssa/ssa-hoist-4.c with the actual fix for PR102880
where CFG cleanup has the choice to remove two forwarders and
picks "the wrong" leading to

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #3 from Peter Bergner  ---
A not too old trunk build didn't ICE, so this looks new.  I'll bisect it to
find the bad commit.

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

Peter Bergner  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2021-11-18
   Keywords||ice-on-valid-code

--- Comment #2 from Peter Bergner  ---
Confirmed.  Here's a creduced test case. This fails even with -O1 -mcpu=power8:

bergner@pike:~/gcc/BUGS/PR103317$ cat bug.i
int a, b;
char c;
void
d (void)
{
  char e = c;
  if (b)
if (c < 16 - 11)
  e = 16 - 11;
  if (e > 8)
e = 8;
  a = e;
}

bergner@pike:~/gcc/BUGS/PR103317$ gcc -S -O1 -mcpu=power8 bug.i 
bug.i: In function ā€˜dā€™:
bug.i:13:1: error: definition in block 3 does not dominate use in block 2
   13 | }
  | ^
for SSA_NAME: _2 in statement:
e_5 = PHI <_2(2), _4(3)>
PHI argument
_2
for PHI node
e_5 = PHI <_2(2), _4(3)>
during GIMPLE pass: phiopt
bug.i:13:1: internal compiler error: verify_ssa failed
0x11989b73 verify_ssa(bool, bool)

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

Michael Meissner  changed:

   What|Removed |Added

   Priority|P2  |P1

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

--- Comment #1 from Peter Bergner  ---
I'll try and creduce the test case.

[Bug tree-optimization/103317] Spec 2017 benchmark blender_r fails with -Ofast on PowerPc (power9, power10)

2021-11-18 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103317

Michael Meissner  changed:

   What|Removed |Added

   Severity|normal  |major
   Priority|P3  |P2