aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-08 18:48:04 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-08 18:48:04 +0000
commit554906860bd71e349772b755c76998cfd6c4596e (patch)
treeeecc672ac3b50f106c4d4a513aee6d74d6512302
parentfb5320b0e234551585704326210febcb0bb3c3a4 (diff)
Revert merge mistake
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/dataflow-branch@124552 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/regclass.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 9b79aa3c22b..c01186b22a6 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -1100,70 +1100,6 @@ scan_one_insn (rtx insn, int pass ATTRIBUTE_UNUSED)
return insn;
}
- /* Improve handling of two-address insns such as
- (set X (ashift CONST Y)) where CONST must be made to
- match X. Change it into two insns: (set X CONST)
- (set X (ashift X Y)). If we left this for reloading, it
- would probably get three insns because X and Y might go
- in the same place. This prevents X and Y from receiving
- the same hard reg.
-
- We can only do this if the modes of operands 0 and 1
- (which might not be the same) are tieable and we only need
- do this during our first pass. */
-
- if (pass == 0 && optimize
- && recog_data.n_operands >= 3
- && recog_data.constraints[1][0] == '0'
- && recog_data.constraints[1][1] == 0
- && CONSTANT_P (recog_data.operand[1])
- && ! rtx_equal_p (recog_data.operand[0], recog_data.operand[1])
- && ! rtx_equal_p (recog_data.operand[0], recog_data.operand[2])
- && REG_P (recog_data.operand[0])
- && MODES_TIEABLE_P (GET_MODE (recog_data.operand[0]),
- recog_data.operand_mode[1]))
- {
- rtx previnsn = prev_real_insn (insn);
- rtx dest
- = gen_lowpart (recog_data.operand_mode[1],
- recog_data.operand[0]);
- rtx newinsn
- = emit_insn_before (gen_move_insn (dest, recog_data.operand[1]), insn);
-
- /* If this insn was the start of a basic block,
- include the new insn in that block.
- We need not check for code_label here;
- while a basic block can start with a code_label,
- INSN could not be at the beginning of that block. */
- if (previnsn == 0 || JUMP_P (previnsn))
- {
- basic_block b;
- FOR_EACH_BB (b)
- if (insn == BB_HEAD (b))
- BB_HEAD (b) = newinsn;
- }
-
- /* This makes one more setting of new insns's dest. */
- INC_REG_N_SETS (REGNO (recog_data.operand[0]), 1);
- INC_REG_N_REFS (REGNO (recog_data.operand[0]), 1);
- REG_FREQ (REGNO (recog_data.operand[0])) += frequency;
-
- *recog_data.operand_loc[1] = recog_data.operand[0];
- INC_REG_N_REFS (REGNO (recog_data.operand[0]), 1);
- REG_FREQ (REGNO (recog_data.operand[0])) += frequency;
- for (i = recog_data.n_dups - 1; i >= 0; i--)
- if (recog_data.dup_num[i] == 1)
- {
- *recog_data.dup_loc[i] = recog_data.operand[0];
- INC_REG_N_REFS (REGNO (recog_data.operand[0]), 1);
- REG_FREQ (REGNO (recog_data.operand[0])) += frequency;
- }
-
- df_insn_rescan (insn);
-
- return PREV_INSN (newinsn);
- }
-
record_operand_costs (insn, op_costs, reg_pref);
/* Now add the cost for each operand to the total costs for