summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-09-25 20:23:32 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-09-25 20:23:32 +0000
commit3b8838ae41a9cc02b929e00e43cd88f1e9f5c36f (patch)
tree8f8e55a8eb3e1905ca27e0f1c46f5a3a512ad239 /gcc/expmed.c
parente3f529ab6f118db9fd290725b545cfd5c738e477 (diff)
downloadgcc-3b8838ae41a9cc02b929e00e43cd88f1e9f5c36f.tar.gz
(store_bit_field): don't make flag_force_mem disable insv
for memory operands. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 2f6ff93101f..ee55ddb48ca 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -409,13 +409,13 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
int save_volatile_ok = volatile_ok;
volatile_ok = 1;
- /* If this machine's insv can only insert into a register, or if we
- are to force MEMs into a register, copy OP0 into a register and
- save it back later. */
+ /* If this machine's insv can only insert into a register, copy OP0
+ into a register and save it back later. */
+ /* This used to check flag_force_mem, but that was a serious
+ de-optimization now that flag_force_mem is enabled by -O2. */
if (GET_CODE (op0) == MEM
- && (flag_force_mem
- || ! ((*insn_operand_predicate[(int) CODE_FOR_insv][0])
- (op0, VOIDmode))))
+ && ! ((*insn_operand_predicate[(int) CODE_FOR_insv][0])
+ (op0, VOIDmode)))
{
rtx tempreg;
enum machine_mode bestmode;