[Bug rtl-optimization/102627] [11 Regression] wrong code with "-O1"

2021-10-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102627

H.J. Lu  changed:

   What|Removed |Added

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

--- Comment #9 from H.J. Lu  ---
Fixed for GCC 12 and 11.3.

[Bug rtl-optimization/102627] [11 Regression] wrong code with "-O1"

2021-10-14 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102627

--- Comment #8 from Vladimir Makarov  ---
I've committed the patch to gcc-11 branch too after nobody made complaints
about the patch in the trunk.  I've also successfully tested and bootstrapped
the patch on the branch too.

[Bug rtl-optimization/102627] [11 Regression] wrong code with "-O1"

2021-10-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102627

--- Comment #7 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Vladimir Makarov
:

https://gcc.gnu.org/g:99d21577f8a00196f3133fe1066de6e3e7d180c1

commit r11-9154-g99d21577f8a00196f3133fe1066de6e3e7d180c1
Author: Vladimir N. Makarov 
Date:   Fri Oct 8 10:16:09 2021 -0400

[PR102627] Use at least natural mode during splitting hard reg live range

In the PR test case SImode was used to split live range of cx on x86-64
because it was the biggest mode for this hard reg in the function.  But
all 64-bits of cx contain structure members.  We need always to use at
least
natural mode of hard reg in splitting to fix this problem.

gcc/ChangeLog:

PR rtl-optimization/102627
* lra-constraints.c (split_reg): Use at least natural mode of hard
reg.

gcc/testsuite/ChangeLog:

PR rtl-optimization/102627
* gcc.target/i386/pr102627.c: New test.

[Bug rtl-optimization/102627] [11 Regression] wrong code with "-O1"

2021-10-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102627

Jakub Jelinek  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |vmakarov at gcc dot 
gnu.org
Summary|[11/12 Regression] wrong|[11 Regression] wrong code
   |code with "-O1" |with "-O1"
 Status|NEW |ASSIGNED

--- Comment #6 from Jakub Jelinek  ---
Fixed on the trunk so far.