https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102627
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Vladimir Makarov <[email protected]>: https://gcc.gnu.org/g:99d21577f8a00196f3133fe1066de6e3e7d180c1 commit r11-9154-g99d21577f8a00196f3133fe1066de6e3e7d180c1 Author: Vladimir N. Makarov <[email protected]> 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.
