[Bug tree-optimization/117079] [15 Regression] FAIL: gcc.target/i386/pr105493.c since r15-2820-gab18785840d7b8

2025-01-15 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117079

Christoph Müllner  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Christoph Müllner  ---
Fixed in
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=120a37008222bf6fe17658af3d1ba1b384642905

[Bug tree-optimization/117079] [15 Regression] FAIL: gcc.target/i386/pr105493.c since r15-2820-gab18785840d7b8

2025-01-14 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117079

--- Comment #4 from Christoph Müllner  ---
The reason that we don't have "MEM " in the dump
anymore is that we now have "MEM ".

Further, the size of the function in the test case shrinks from 225
instructions down to 109 (almost all vector instructions).

I tried to measure a performance difference on my 5950X (-march=native) when
calling the test function four times in a loop with 1024l * 1024 * 1024 * 1024
iterations.
However, I did not see enough evidence to claim that the new code is better
(memory bandwidth is probably the limit):

* old: 4m34.405s, 4m47.825s, 4m38.187s
* new: 4m34.722s, 4m34.936s, 4m34.922s

I propose to fix the failing test case by fixing the test condition.
A patch for that is on the list:
  https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673551.html

FWIW, here is a small code change that will bring back the old behavior for
analysis:

--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -2595,7 +2595,7 @@ out:
   auto_vec two_op_perm_indices[2];
   vec two_op_scalar_stmts[2] = {vNULL, vNULL};

-  if (two_operators && oprnds_info.length () == 2 && group_size > 2)
+  if (false && two_operators && oprnds_info.length () == 2 && group_size > 2)
 {
   unsigned idx = 0;
   hash_map seen;

[Bug tree-optimization/117079] [15 Regression] FAIL: gcc.target/i386/pr105493.c since r15-2820-gab18785840d7b8

2025-01-10 Thread ptomsich at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117079

ptomsich at gcc dot gnu.org changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |cmuellner at gcc dot 
gnu.org
 Status|NEW |ASSIGNED

[Bug tree-optimization/117079] [15 Regression] FAIL: gcc.target/i386/pr105493.c since r15-2820-gab18785840d7b8

2024-10-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117079

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1