Commit 65e87462 by Ilya Leoshkevich Committed by Jeff Law

nds32.c (nds32_hard_regno_mode_ok): Replace > with >=.

	* config/nds32/nds32.c (nds32_hard_regno_mode_ok): Replace > with >=.
	* df-problems.c (df_remove_dead_eq_notes): Replace > with >=.
	* dwarf2out.c (mem_loc_descriptor): Replace > with >=.
	* lra-constraints.c (spill_hard_reg_in_range): Replace <= with <.
	* lra-remat.c (call_used_input_regno_present_p): Replace <= with <.

From-SVN: r263280
parent 653fee19
2018-07-19 Ilya Leoshkevich <iii@linux.ibm.com>
* config/nds32/nds32.c (nds32_hard_regno_mode_ok): Replace > with >=.
* df-problems.c (df_remove_dead_eq_notes): Replace > with >=.
* dwarf2out.c (mem_loc_descriptor): Replace > with >=.
* lra-constraints.c (spill_hard_reg_in_range): Replace <= with <.
* lra-remat.c (call_used_input_regno_present_p): Replace <= with <.
2018-08-02 David Malcolm <dmalcolm@redhat.com> 2018-08-02 David Malcolm <dmalcolm@redhat.com>
* diagnostic-show-locus.c (diagnostic_show_locus): Use * diagnostic-show-locus.c (diagnostic_show_locus): Use
......
...@@ -4342,7 +4342,7 @@ nds32_hard_regno_nregs (unsigned regno ATTRIBUTE_UNUSED, ...@@ -4342,7 +4342,7 @@ nds32_hard_regno_nregs (unsigned regno ATTRIBUTE_UNUSED,
static bool static bool
nds32_hard_regno_mode_ok (unsigned int regno, machine_mode mode) nds32_hard_regno_mode_ok (unsigned int regno, machine_mode mode)
{ {
if (regno > FIRST_PSEUDO_REGISTER) if (regno >= FIRST_PSEUDO_REGISTER)
return true; return true;
if ((TARGET_FPU_SINGLE || TARGET_FPU_DOUBLE) && NDS32_IS_FPR_REGNUM (regno)) if ((TARGET_FPU_SINGLE || TARGET_FPU_DOUBLE) && NDS32_IS_FPR_REGNUM (regno))
......
...@@ -3205,7 +3205,7 @@ df_remove_dead_eq_notes (rtx_insn *insn, bitmap live) ...@@ -3205,7 +3205,7 @@ df_remove_dead_eq_notes (rtx_insn *insn, bitmap live)
bool deleted = false; bool deleted = false;
FOR_EACH_INSN_EQ_USE (use, insn) FOR_EACH_INSN_EQ_USE (use, insn)
if (DF_REF_REGNO (use) > FIRST_PSEUDO_REGISTER if (DF_REF_REGNO (use) >= FIRST_PSEUDO_REGISTER
&& DF_REF_LOC (use) && DF_REF_LOC (use)
&& (DF_REF_FLAGS (use) & DF_REF_IN_NOTE) && (DF_REF_FLAGS (use) & DF_REF_IN_NOTE)
&& !bitmap_bit_p (live, DF_REF_REGNO (use)) && !bitmap_bit_p (live, DF_REF_REGNO (use))
......
...@@ -15476,7 +15476,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, ...@@ -15476,7 +15476,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode,
if (dwarf_strict && dwarf_version < 5) if (dwarf_strict && dwarf_version < 5)
break; break;
if (REGNO (rtl) > FIRST_PSEUDO_REGISTER) if (REGNO (rtl) >= FIRST_PSEUDO_REGISTER)
break; break;
type_die = base_type_for_mode (mode, SCALAR_INT_MODE_P (mode)); type_die = base_type_for_mode (mode, SCALAR_INT_MODE_P (mode));
if (type_die == NULL) if (type_die == NULL)
......
...@@ -5709,7 +5709,7 @@ spill_hard_reg_in_range (int regno, enum reg_class rclass, rtx_insn *from, rtx_i ...@@ -5709,7 +5709,7 @@ spill_hard_reg_in_range (int regno, enum reg_class rclass, rtx_insn *from, rtx_i
struct lra_insn_reg *reg; struct lra_insn_reg *reg;
for (reg = id->regs; reg != NULL; reg = reg->next) for (reg = id->regs; reg != NULL; reg = reg->next)
if (reg->regno <= FIRST_PSEUDO_REGISTER) if (reg->regno < FIRST_PSEUDO_REGISTER)
SET_HARD_REG_BIT (ignore, reg->regno); SET_HARD_REG_BIT (ignore, reg->regno);
for (reg = static_id->hard_regs; reg != NULL; reg = reg->next) for (reg = static_id->hard_regs; reg != NULL; reg = reg->next)
SET_HARD_REG_BIT (ignore, reg->regno); SET_HARD_REG_BIT (ignore, reg->regno);
......
...@@ -708,7 +708,7 @@ call_used_input_regno_present_p (rtx_insn *insn) ...@@ -708,7 +708,7 @@ call_used_input_regno_present_p (rtx_insn *insn)
for (reg = (iter == 0 ? id->regs : static_id->hard_regs); for (reg = (iter == 0 ? id->regs : static_id->hard_regs);
reg != NULL; reg != NULL;
reg = reg->next) reg = reg->next)
if (reg->type == OP_IN && reg->regno <= FIRST_PSEUDO_REGISTER if (reg->type == OP_IN && reg->regno < FIRST_PSEUDO_REGISTER
&& TEST_HARD_REG_BIT (call_used_reg_set, reg->regno)) && TEST_HARD_REG_BIT (call_used_reg_set, reg->regno))
return true; return true;
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment