]> gcc.gnu.org Git - gcc.git/commitdiff
nds32.c (nds32_hard_regno_mode_ok): Replace > with >=.
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 2 Aug 2018 22:39:59 +0000 (22:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 2 Aug 2018 22:39:59 +0000 (16:39 -0600)
* 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

gcc/ChangeLog
gcc/config/nds32/nds32.c
gcc/df-problems.c
gcc/dwarf2out.c
gcc/lra-constraints.c
gcc/lra-remat.c

index cfd971faca4b5fa360ea4caa960b2500b13e7a45..80685cdd84d09f248d8b70ab335002bd5bc5145d 100644 (file)
@@ -1,3 +1,11 @@
+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>
 
        * diagnostic-show-locus.c (diagnostic_show_locus): Use
index 85a29865c7a31e29e6e0a56e69608ae9d83329c8..721135e6ba182bb7d0c30a92754220e3d38a2f3a 100644 (file)
@@ -4342,7 +4342,7 @@ nds32_hard_regno_nregs (unsigned regno ATTRIBUTE_UNUSED,
 static bool
 nds32_hard_regno_mode_ok (unsigned int regno, machine_mode mode)
 {
-  if (regno > FIRST_PSEUDO_REGISTER)
+  if (regno >= FIRST_PSEUDO_REGISTER)
     return true;
 
   if ((TARGET_FPU_SINGLE || TARGET_FPU_DOUBLE) && NDS32_IS_FPR_REGNUM (regno))
index 3d73bc5df10a009be19c0a6cb7181ee2f31470c2..7ccb57c287aed5d2bbde17f3d3757b6050c951ab 100644 (file)
@@ -3205,7 +3205,7 @@ df_remove_dead_eq_notes (rtx_insn *insn, bitmap live)
            bool deleted = false;
 
            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_FLAGS (use) & DF_REF_IN_NOTE)
                  && !bitmap_bit_p (live, DF_REF_REGNO (use))
index ffbde6f9961c23de3cdb4ad5afa0511e1c9ce2a0..1850a0f93e798cd7cf57d9ccce2e0725de109ec5 100644 (file)
@@ -15476,7 +15476,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode,
 
          if (dwarf_strict && dwarf_version < 5)
            break;
-         if (REGNO (rtl) > FIRST_PSEUDO_REGISTER)
+         if (REGNO (rtl) >= FIRST_PSEUDO_REGISTER)
            break;
          type_die = base_type_for_mode (mode, SCALAR_INT_MODE_P (mode));
          if (type_die == NULL)
index 6d4042ebdc228d93136214687cad4da0e5a1e169..8be4d46c8ad79b68397e9ec6ab49a262ccec36d1 100644 (file)
@@ -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;
       
       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);
       for (reg = static_id->hard_regs; reg != NULL; reg = reg->next)
        SET_HARD_REG_BIT (ignore, reg->regno);
index 527f2dd2b59b02ef7abf9ded7bd7fff521230944..faf74ca8de766f20cf028bc13aca1f6dba01fefa 100644 (file)
@@ -708,7 +708,7 @@ call_used_input_regno_present_p (rtx_insn *insn)
     for (reg = (iter == 0 ? id->regs : static_id->hard_regs);
         reg != NULL;
         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))
        return true;
   return false;
This page took 0.15016 seconds and 5 git commands to generate.