On 11/06/2018 04:38 AM, Alexandre Oliva wrote:
Just like CONST_INT, CONST_WIDE_INT is VOIDmode, so LRA might be
tempted to build a SUBREG to "convert" it to the wanted mode.  That's
no use.  Test for CONST_SCALAR_INT_P instead of CONST_INT_P so that we
skip the subreg creation for both.

Regstrapped on x86_64- and i686-linux-gnu.  Ok to install?
Yes.  Thank you, Alex.
for  gcc/ChangeLog

        PR rtl-optimization/87874
        * lra.c (lra_substitute_pseudo): Do not create a subreg for
        const wide ints.

for  gcc/testsuite/ChangeLog

        PR rtl-optimization/87874
        * gcc.dg/pr87874.c: New.

Reply via email to