Commit 7891065a by Vladimir Makarov Committed by Vladimir Makarov

re PR rtl-optimization/57189 (Vector register is spilled for vector extract pattern)

2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/57189
	* lra-constraints.c (process_alt_operands): Disfavor spilling
	vector pseudos.

2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/57189
	* gcc.target/i386/pr57189.c: New.

From-SVN: r208549
parent 00c5acd3
2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/57189
* lra-constraints.c (process_alt_operands): Disfavor spilling
vector pseudos.
2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
* lto-wrapper.c (maybe_unlink_file): Suppress diagnostic
......
......@@ -2302,9 +2302,20 @@ process_alt_operands (int only_alternative)
if (lra_dump_file != NULL)
fprintf
(lra_dump_file,
" %d Spill pseudo in memory: reject+=3\n",
" %d Spill pseudo into memory: reject+=3\n",
nop);
reject += 3;
if (VECTOR_MODE_P (mode))
{
/* Spilling vectors into memory is usually more
costly as they contain big values. */
if (lra_dump_file != NULL)
fprintf
(lra_dump_file,
" %d Spill vector pseudo: reject+=2\n",
nop);
reject += 2;
}
}
#ifdef SECONDARY_MEMORY_NEEDED
......
2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/57189
* gcc.target/i386/pr57189.c: New.
2014-03-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60254
......
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -march=k8" } */
/* { dg-final { scan-assembler-not "movaps" } } */
typedef int __v4si __attribute__ ((__vector_size__ (16)));
int test (__v4si __A)
{
return __builtin_ia32_vec_ext_v4si (__A, 0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment