OSDN Git Service

* reload1.c (reload_cse_regs): Call bzero instead of looping.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 1998 23:00:29 +0000 (23:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 1998 23:00:29 +0000 (23:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20530 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index 166dd64..bfa685f 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jun 16 22:58:40 1998  Richard Henderson  <rth@cygnus.com>
+
+       * reload1.c (reload_cse_regs): Call bzero instead of looping.
+
 Tue Jun 16 18:30:35 1998  Jim Wilson  <wilson@cygnus.com>
 
        * dwarf2out.c (stripattributes): Prepend '*' to the section name.
index b1e26ae..b69ee76 100644 (file)
@@ -8165,8 +8165,7 @@ reload_cse_regs (first)
   init_alias_analysis ();
 
   reg_values = (rtx *) alloca (FIRST_PSEUDO_REGISTER * sizeof (rtx));
-  for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
-    reg_values[i] = 0;
+  bzero (reg_values, FIRST_PSEUDO_REGISTER * sizeof (rtx));
 
   /* Create our EXPR_LIST structures on reload_obstack, so that we can
      free them when we are done.  */
@@ -8483,8 +8482,7 @@ reload_cse_simplify_set (set, insn)
 
   dclass = REGNO_REG_CLASS (dreg);
 
-  /* If memory loads are cheaper than register copies, don't change
-     them.  */
+  /* If memory loads are cheaper than register copies, don't change them.  */
   if (GET_CODE (src) == MEM
       && MEMORY_MOVE_COST (GET_MODE (src), dclass, 1) < 2)
     return 0;