[llvm-commits] [llvm-gcc-4.2] r55168 - in /llvm-gcc-4.2/trunk/gcc/config/alpha: alpha.c alpha.md

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Aug 21 22:10:25 PDT 2008


Author: alenhar2
Date: Fri Aug 22 00:10:25 2008
New Revision: 55168

URL: http://llvm.org/viewvc/llvm-project?rev=55168&view=rev
Log:
get alpha compiling again

Modified:
    llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.c
    llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.md

Modified: llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.c?rev=55168&r1=55167&r2=55168&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.c Fri Aug 22 00:10:25 2008
@@ -8430,7 +8430,13 @@
      assemble_start_function and assemble_end_function.  */
   insn = get_insns ();
   insn_locators_initialize ();
-  shorten_branches (insn);
+  /* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
+/* LLVM LOCAL end */
+shorten_branches (insn);
+/* LLVM LOCAL begin */
+#endif
+/* LLVM LOCAL end */
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
@@ -9225,8 +9231,15 @@
   int prev_in_use, in_use, len, ldgp;
   rtx i, next;
 
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
+/* LLVM LOCAL end */
   /* Let shorten branches care for assigning alignments to code labels.  */
   shorten_branches (get_insns ());
+/* LLVM LOCAL begin */
+#endif
+/* LLVM LOCAL end */
+
 
   if (align_functions < 4)
     align = 4;

Modified: llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.md
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.md?rev=55168&r1=55167&r2=55168&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.md (original)
+++ llvm-gcc-4.2/trunk/gcc/config/alpha/alpha.md Fri Aug 22 00:10:25 2008
@@ -4190,6 +4190,10 @@
 	   && rtx_equal_p (operands[5], operands[3]))
     operands[5] = operands[2];
 
+/* LLVM LOCAL begin comment out this pattern */
+#ifndef ENABLE_LLVM
+/* LLVM LOCAL end */
+
   if (code == NE || code == EQ
       || (extended_count (operands[2], DImode, unsignedp) >= 1
 	  && extended_count (operands[3], DImode, unsignedp) >= 1))
@@ -4203,7 +4207,13 @@
       operands[8] = gen_rtx_fmt_ee (code, VOIDmode, operands[6], const0_rtx);
     }
 
-  else if (code == EQ || code == LE || code == LT
+  else 
+/* LLVM LOCAL begin comment out this pattern*/
+#endif
+/* LLVM LOCAL end */
+
+
+if (code == EQ || code == LE || code == LT
 	   || code == LEU || code == LTU)
     {
       operands[7] = gen_rtx_fmt_ee (code, DImode, operands[2], operands[3]);
@@ -4236,10 +4246,17 @@
   int unsignedp = (code == GEU || code == LEU || code == GTU || code == LTU);
   rtx tem;
 
+/* LLVM LOCAL begin comment out this pattern */
+#ifndef ENABLE_LLVM
+/* LLVM LOCAL end */
+
   if ((code != NE && code != EQ
        && ! (extended_count (operands[2], DImode, unsignedp) >= 1
 	     && extended_count (operands[3], DImode, unsignedp) >= 1)))
     FAIL;
+/* LLVM LOCAL begin comment out this pattern */
+#endif
+/* LLVM LOCAL end */
 
   if (GET_CODE (operands[3]) == CONST_INT)
     tem = gen_rtx_PLUS (SImode, operands[2],





More information about the llvm-commits mailing list