aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2005-07-06 21:08:02 +0000
committerFariborz Jahanian <fjahanian@gcc.gnu.org>2005-07-06 21:08:02 +0000
commit1d8eeb6305f34833ff3ca867ace263ac5a46645a (patch)
tree72f0defa1895cf089d7787f10f4d92c5a40899b9 /gcc/expmed.c
parentc42adccb1a99b85613384a3847264c3cc51a12d7 (diff)
downloadgcc-1d8eeb6305f34833ff3ca867ace263ac5a46645a.zip
gcc-1d8eeb6305f34833ff3ca867ace263ac5a46645a.tar.gz
gcc-1d8eeb6305f34833ff3ca867ace263ac5a46645a.tar.bz2
Removal of -fforce-mem.
OKed by Richard Henderson. From-SVN: r101666
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index f6f35b9..e54f043 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -408,14 +408,6 @@ store_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
}
}
- if (flag_force_mem)
- {
- int old_generating_concat_p = generating_concat_p;
- generating_concat_p = 0;
- value = force_not_mem (value);
- generating_concat_p = old_generating_concat_p;
- }
-
/* If the target is a register, overwriting the entire object, or storing
a full-word or multi-word field can be done with just a SUBREG.
@@ -633,8 +625,6 @@ store_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
/* 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 (MEM_P (op0)
&& ! ((*insn_data[(int) CODE_FOR_insv].operand[0].predicate)
(op0, VOIDmode)))
@@ -902,7 +892,7 @@ store_fixed_bit_field (rtx op0, unsigned HOST_WIDE_INT offset,
/* Now clear the chosen bits in OP0,
except that if VALUE is -1 we need not bother. */
- subtarget = (REG_P (op0) || ! flag_force_mem) ? op0 : 0;
+ subtarget = op0;
if (! all_one)
{
@@ -1449,8 +1439,7 @@ extract_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
unit = GET_MODE_BITSIZE (maxmode);
- if (xtarget == 0
- || (flag_force_mem && MEM_P (xtarget)))
+ if (xtarget == 0)
xtarget = xspec_target = gen_reg_rtx (tmode);
if (GET_MODE (xtarget) != maxmode)
@@ -1577,8 +1566,7 @@ extract_bit_field (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
unit = GET_MODE_BITSIZE (maxmode);
- if (xtarget == 0
- || (flag_force_mem && MEM_P (xtarget)))
+ if (xtarget == 0)
xtarget = xspec_target = gen_reg_rtx (tmode);
if (GET_MODE (xtarget) != maxmode)