aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2016-07-05 16:05:27 +0000
committerJiong Wang <jiwang@gcc.gnu.org>2016-07-05 16:05:27 +0000
commit10406801f48939f8cad083ed3ed86143bef5eb01 (patch)
treea631f6bd21815559f13d260de744910b7f76acba /gcc/lra-constraints.c
parent1210573b1dc2b4151f7a1076e23d05f605f22b39 (diff)
downloadgcc-10406801f48939f8cad083ed3ed86143bef5eb01.zip
gcc-10406801f48939f8cad083ed3ed86143bef5eb01.tar.gz
gcc-10406801f48939f8cad083ed3ed86143bef5eb01.tar.bz2
[LRA] Don't count spilling cost for it offmemok
* lra-constraints.c (process_alt_operands): Don't add spilling cost for "offmemok". From-SVN: r238010
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index bf08dce..e9d3e43 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -2488,7 +2488,9 @@ process_alt_operands (int only_alternative)
Code below increases the reject for both pseudo and non-pseudo
spill. */
- if (no_regs_p && !(REG_P (op) && hard_regno[nop] < 0))
+ if (no_regs_p
+ && !(MEM_P (op) && offmemok)
+ && !(REG_P (op) && hard_regno[nop] < 0))
{
if (lra_dump_file != NULL)
fprintf