re PR target/30961 (redundant reg/mem stores/moves)
gcc/ 2007-11-06 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> PR target/30961 * reload1.c (find_reloads): Also check in_reg when handling a simple move with an input reload and a destination of a hard register. gcc/testsuite/ 2007-11-06 H.J. Lu <hongjiu.lu@intel.com> PR target/30961 * gcc.target/i386/pr30961-1.c: New. From-SVN: r129943
This commit is contained in:
parent
b8c963204c
commit
b3519e7c8a
@ -1,3 +1,10 @@
|
||||
2007-11-06 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
|
||||
PR target/30961
|
||||
* reload1.c (find_reloads): Also check in_reg when handling a
|
||||
simple move with an input reload and a destination of a hard
|
||||
register.
|
||||
|
||||
2007-11-06 Maxim Kuvyrkov <maxim@codesourcery.com>
|
||||
|
||||
* config/m68k/m68k.c (sched-int.h, insn-codes.h): New includes.
|
||||
|
@ -4462,7 +4462,8 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known,
|
||||
if (rld[i].when_needed == RELOAD_FOR_INPUT
|
||||
&& GET_CODE (PATTERN (insn)) == SET
|
||||
&& REG_P (SET_DEST (PATTERN (insn)))
|
||||
&& SET_SRC (PATTERN (insn)) == rld[i].in
|
||||
&& (SET_SRC (PATTERN (insn)) == rld[i].in
|
||||
|| SET_SRC (PATTERN (insn)) == rld[i].in_reg)
|
||||
&& !elimination_target_reg_p (SET_DEST (PATTERN (insn))))
|
||||
{
|
||||
rtx dest = SET_DEST (PATTERN (insn));
|
||||
|
@ -1,3 +1,8 @@
|
||||
2007-11-06 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/30961
|
||||
* gcc.target/i386/pr30961-1.c: New.
|
||||
|
||||
2007-11-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR c++/32368:
|
||||
|
13
gcc/testsuite/gcc.target/i386/pr30961-1.c
Normal file
13
gcc/testsuite/gcc.target/i386/pr30961-1.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
double
|
||||
convert (long long in)
|
||||
{
|
||||
double f;
|
||||
__builtin_memcpy( &f, &in, sizeof( in ) );
|
||||
return f;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-not "movapd" } } */
|
Loading…
Reference in New Issue
Block a user