Author: yug
Date: 2011-08-05 07:43:36 -0400 (Fri, 05 Aug 2011)
New Revision: 3710

Modified:
   trunk/osprey/be/cg/cg_loop.cxx
   trunk/osprey/be/cg/lra.cxx
   trunk/osprey/be/cg/whirl2ops.cxx
   trunk/osprey/common/com/config_lno.cxx
   trunk/osprey/common/com/x8664/config_targ.cxx
Log:
Fix the non-x86 targets build broken issue since v3681. CR by Sun Chan

Modified: trunk/osprey/be/cg/cg_loop.cxx
===================================================================
--- trunk/osprey/be/cg/cg_loop.cxx      2011-08-04 21:25:29 UTC (rev 3709)
+++ trunk/osprey/be/cg/cg_loop.cxx      2011-08-05 11:43:36 UTC (rev 3710)
@@ -8581,9 +8581,11 @@
     // accurate register pressure components to fill in the currently
     // boolean setting to the notion that the scheduler saw register pressure.
     // So here we fill in the value for lra to use if needed.
+#ifdef TARG_X8664
     if (BB_regpressure(bb,ISA_REGISTER_CLASS_float)) {
       Set_BB_regpressure(bb, D_f, ISA_REGISTER_CLASS_float);
     }
+#endif
 
     // compute the number of gpr Regs Predicted
     conflict_map_i = Calculate_All_Conflicts(bb, regs_in_use, 
@@ -8596,9 +8598,11 @@
                              ISA_REGISTER_CLASS_integer) + 1;
 
     // Now do the same for int regs
+#ifdef TARG_X8664
     if (BB_regpressure(bb,ISA_REGISTER_CLASS_integer)) {
       Set_BB_regpressure(bb, D_i, ISA_REGISTER_CLASS_integer);
     }
+#endif
 
     if (trace_general) {
       // Now print the details of this loop

Modified: trunk/osprey/be/cg/lra.cxx
===================================================================
--- trunk/osprey/be/cg/lra.cxx  2011-08-04 21:25:29 UTC (rev 3709)
+++ trunk/osprey/be/cg/lra.cxx  2011-08-05 11:43:36 UTC (rev 3710)
@@ -4287,9 +4287,11 @@
       local_spills++;global_spills++;
 
       BOOL uses_destructive_dest = FALSE;
+#ifdef TARG_X8664
       if( Is_Target_Orochi() && OP_sse5( op ) ){
         uses_destructive_dest = check_uses_destructive_dest(prev_tn, bb);
       }
+#endif
 
       if ((OP_same_res(op)
 #ifdef TARG_X8664

Modified: trunk/osprey/be/cg/whirl2ops.cxx
===================================================================
--- trunk/osprey/be/cg/whirl2ops.cxx    2011-08-04 21:25:29 UTC (rev 3709)
+++ trunk/osprey/be/cg/whirl2ops.cxx    2011-08-05 11:43:36 UTC (rev 3710)
@@ -3166,6 +3166,7 @@
   WN   *compare;
   VARIANT variant;
 
+#ifdef TARG_X8664
   if (opcode == OPC_V16I1V16I1SELECT) {
     TN* op1 = Expand_Expr(WN_kid0(select), select, NULL);
     TN* op2 = Expand_Expr(WN_kid1(select), select, NULL);
@@ -3177,6 +3178,7 @@
     Expand_Select(result, op1, op2, op3, MTYPE_V16I1, FALSE, &New_OPs); 
//FALSE passed as dummy arg
     return result;
   }
+#endif
 
  /*
   *  Expand the true/false before the condition

Modified: trunk/osprey/common/com/config_lno.cxx
===================================================================
--- trunk/osprey/common/com/config_lno.cxx      2011-08-04 21:25:29 UTC (rev 
3709)
+++ trunk/osprey/common/com/config_lno.cxx      2011-08-05 11:43:36 UTC (rev 
3710)
@@ -1227,12 +1227,5 @@
                        Mhd_Options.L[i].TLB_Miss_Penalty;
     }
   }
-
-  /* Value of 1 for LNO_Iter_threshold is interpreted as default in which case 
-     the flag is set based on target. Otherwise use user-specified value.
-   */
-  if(LNO_Iter_threshold == 1) {
-    LNO_Iter_threshold = (Is_Target_SSE41())? 8 : 0;
-  }
 }
 

Modified: trunk/osprey/common/com/x8664/config_targ.cxx
===================================================================
--- trunk/osprey/common/com/x8664/config_targ.cxx       2011-08-04 21:25:29 UTC 
(rev 3709)
+++ trunk/osprey/common/com/x8664/config_targ.cxx       2011-08-05 11:43:36 UTC 
(rev 3710)
@@ -86,6 +86,9 @@
 #include "mtypes.h"
 #include "stab.h"
 #include "targ_sim.h"
+#ifdef BACK_END
+#include "config_lno.h"
+#endif
 
 #if defined(FRONT_END_C) || defined(FRONT_END_CPLUSPLUS)
 typedef unsigned char an_integer_kind;
@@ -715,6 +718,13 @@
   FmtAssert (IS_POW2(Align_Instructions), 
        ("-OPT:align_instructions=<n> must equal power of two"));
 
+#ifdef BACK_END
+  /* Value of LNO_Iter_threshold is interpreted as default in which case 
+     the flag is set based on target. Otherwise use user-specified value.
+   */
+  LNO_Iter_threshold = (Is_Target_SSE41())? 8 : 0;
+#endif
+
   return;
 }
 


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to