diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2016-09-04 13:16:30 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2016-09-07 22:08:37 +0200 |
commit | 4d2d7157974ca1a2a8c4df7a4b55ad0ae0a247c4 (patch) | |
tree | 60d22552bf895d60f05a05bfebe78fd74a3f910b | |
parent | af0581ebfc447933ecc98748f05024bd0db2df2a (diff) |
gcc/
Backport from trunk r238010.
2016-07-05 Jiong Wang <jiong.wang@arm.com>
* lra-constraints.c (process_alt_operands): Don't add spilling cost for
"offmemok".
Change-Id: I0cdc8ccb1642c7d23373ab14a6ff41d9bf4da844
-rw-r--r-- | gcc/lra-constraints.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index bcffea52552..a348bd9fa7b 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2481,7 +2481,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 |