* lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 Sep 2017 08:10:03 +0000 (10:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Sep 2017 08:10:03 +0000 (10:10 +0200)
From-SVN: r251639

gcc/ChangeLog
gcc/lra-remat.c

index a1bdd8593b33268b3803a7f36ddc8777cc90da3d..1c2642d1508a584900648a3f5c5eb2c4e2c088ac 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
+
 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR bootstrap/82045
index f28993e818d1eff2f5742731628b10f0184f7639..50582dc68ff77c12067864212a696d429f931a73 100644 (file)
@@ -684,7 +684,7 @@ reg_overlap_for_remat_p (lra_insn_reg *reg, rtx_insn *insn)
 
        if (regno2 >= FIRST_PSEUDO_REGISTER && reg_renumber[regno2] >= 0)
          regno2 = reg_renumber[regno2];
-       if (regno >= FIRST_PSEUDO_REGISTER)
+       if (regno2 >= FIRST_PSEUDO_REGISTER)
          nregs2 = 1;
        else
          nregs2 = hard_regno_nregs[regno2][reg->biggest_mode];