summaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-13 15:52:50 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-13 15:52:50 +0000
commitc2d1c3ebeb732d6279ed9eeb2c5e0dcb13dfff83 (patch)
tree24adb203ac298072383e9cf1d012de24b1016af4 /gcc/lra-constraints.c
parent7b91b38464356419fd973fb69998e0cff86fa8d3 (diff)
downloadgcc-c2d1c3ebeb732d6279ed9eeb2c5e0dcb13dfff83.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index a38b555b2ab..288e24b4fe1 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -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