gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue, 10 Apr 2001 21:45:12 +0000 (21:45 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 10 Apr 2001 21:45:12 +0000 (17:45 -0400)
* gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
* flow.c (set_block_for_new_insns): Remove needless cast and
properly check for unset block number.

From-SVN: r41227

gcc/ChangeLog
gcc/flow.c
gcc/gcse.c

index dc5b07cbd6b5b217b20679b14474671319f5caae..da7a4ab1cbe8d1cac9daa5743b38c32ea84324aa 100644 (file)
@@ -1,3 +1,9 @@
+Tue Apr 10 17:45:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
+       * flow.c (set_block_for_new_insns): Remove needless cast and
+       properly check for unset block number.
+
 2001-04-10  Andrew MacLeod  <amacleod@redhat.com>
 
        * function.c (purge_single_hard_subreg_set): Only check REGNO if 
index 7736d855f34af8b6a08aac8bf2963da9f04682e0..68b3aca02e97615b47f7c37f0fe7da256852bf6a 100644 (file)
@@ -6723,8 +6723,8 @@ set_block_for_new_insns (insn, bb)
     {
       if (GET_CODE (insn) == NOTE)
        break;
-      if ((size_t)INSN_UID (insn) >= basic_block_for_insn->num_elements 
-         || BLOCK_NUM (insn) == 0)
+      if (INSN_UID (insn) >= basic_block_for_insn->num_elements 
+         || BLOCK_FOR_INSN (insn) == 0)
        set_block_for_insn (insn, bb);
       else
        break;
index 7f4b3069f43007a44015c13207482f4fbe019683..9121af7cb74936e0105c1a03d8b99d125107c2e3 100644 (file)
@@ -6357,7 +6357,7 @@ update_ld_motion_stores (expr)
          rtx pat = PATTERN (insn);
          rtx src = SET_SRC (pat);
          rtx reg = expr->reaching_reg;
-         rtx copy, i;
+         rtx copy, new;
 
          /* If we've already copied it, continue.  */
          if (expr->reaching_reg == src)
@@ -6373,9 +6373,9 @@ update_ld_motion_stores (expr)
            }
          
          copy = gen_move_insn ( reg, SET_SRC (pat));
-         i = emit_insn_before (copy, insn);
-         record_one_set (REGNO (reg), i);
-         set_block_for_new_insns (i, BLOCK_FOR_INSN (insn));
+         new = emit_insn_before (copy, insn);
+         record_one_set (REGNO (reg), new);
+         set_block_for_new_insns (new, BLOCK_FOR_INSN (insn));
          SET_SRC (pat) = reg;
 
          /* un-recognize this pattern since it's probably different now.  */