Author: evancheng
Date: Wed Jan 23 17:43:35 2008
New Revision: 46290

URL: http://llvm.org/viewvc/llvm-project?rev=46290&view=rev
Log:
Only initialize the tables gimplify needs for llvm.

Modified:
    llvm-gcc-4.2/trunk/gcc/regclass.c

Modified: llvm-gcc-4.2/trunk/gcc/regclass.c
URL: 
http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/regclass.c?rev=46290&r1=46289&r2=46290&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/regclass.c (original)
+++ llvm-gcc-4.2/trunk/gcc/regclass.c Wed Jan 23 17:43:35 2008
@@ -312,9 +312,13 @@
   /* This macro allows the fixed or call-used registers
      and the register classes to depend on target flags.  */
 
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
 #ifdef CONDITIONAL_REGISTER_USAGE
   CONDITIONAL_REGISTER_USAGE;
 #endif
+#endif
+/* LLVM LOCAL end */
 
   /* Compute number of hard regs in each class.  */
 
@@ -324,6 +328,8 @@
       if (TEST_HARD_REG_BIT (reg_class_contents[i], j))
        reg_class_size[i]++;
 
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
   /* Initialize the table of subunions.
      reg_class_subunion[I][J] gets the largest-numbered reg-class
      that is contained in the union of classes I and J.  */
@@ -471,6 +477,8 @@
       else if (CALL_REALLY_USED_REGNO_P (i))
        SET_HARD_REG_BIT (regs_invalidated_by_call, i);
     }
+#endif
+/* LLVM LOCAL end */
 
   memset (have_regs_of_mode, 0, sizeof (have_regs_of_mode));
   memset (contains_reg_of_mode, 0, sizeof (contains_reg_of_mode));
@@ -486,6 +494,8 @@
               break;
             }
 
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
   /* Initialize the move cost table.  Find every subset of each class
      and take the maximum cost of moving any subset to any other.  */
 
@@ -542,6 +552,8 @@
                may_move_out_cost[m][i][j] = 65536;
              }
       }
+#endif
+/* LLVM LOCAL end */
 }
 
 /* Compute the table of register modes.


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to