From db84838d704f867a371ec60d3fea7c1bb7763979 Mon Sep 17 00:00:00 2001 From: vmakarov Date: Sat, 8 Apr 2017 19:18:42 +0000 Subject: [PATCH] 2017-04-08 Vladimir Makarov PR rtl-optimization/70478 * lra-constraints.c: Reverse the last patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246789 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/lra-constraints.c | 15 --------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 368765ef02d..be2e4945638 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-08 Vladimir Makarov + + PR rtl-optimization/70478 + * lra-constraints.c: Reverse the last patch. + 2017-04-08 Andreas Tobler * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME. diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 9440205b66b..4d986249a6f 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2685,21 +2685,6 @@ process_alt_operands (int only_alternative) } } - /* When we use memory operand, the insn should read the - value from memory and even if we just wrote a value - into the memory it is costly in comparison with an - insn alternative which does not use memory - (e.g. register or immediate operand). */ - if (no_regs_p && offmemok) - { - if (lra_dump_file != NULL) - fprintf - (lra_dump_file, - " Using memory insn operand %d: reject+=3\n", - nop); - reject += 3; - } - #ifdef SECONDARY_MEMORY_NEEDED /* If reload requires moving value through secondary memory, it will need one more insn at least. */ -- 2.11.4.GIT