Author: mberg Date: 2011-05-16 21:30:07 -0400 (Mon, 16 May 2011) New Revision: 3606
Modified: trunk/osprey/be/cg/gra_live.cxx trunk/osprey/be/cg/lra.cxx trunk/osprey/be/cg/lra.h Log: adding portability changes for SL and IA64. CR by Jian-Xin. Modified: trunk/osprey/be/cg/gra_live.cxx =================================================================== --- trunk/osprey/be/cg/gra_live.cxx 2011-05-16 05:33:15 UTC (rev 3605) +++ trunk/osprey/be/cg/gra_live.cxx 2011-05-17 01:30:07 UTC (rev 3606) @@ -2451,7 +2451,9 @@ TN *tn = OP_result(op, i); // Don't rename under the following conditions. if (TN_is_dedicated(tn) || OP_cond_def(op) || +#ifdef TARG_X8664 TN_is_norename(tn) || OP_res_norename(op) || +#endif OP_same_res(op)) continue; OP *last_def = (OP *) TN_MAP_Get (op_for_tn, tn); Modified: trunk/osprey/be/cg/lra.cxx =================================================================== --- trunk/osprey/be/cg/lra.cxx 2011-05-16 05:33:15 UTC (rev 3605) +++ trunk/osprey/be/cg/lra.cxx 2011-05-17 01:30:07 UTC (rev 3606) @@ -861,8 +861,8 @@ INT num_conflicts; if (TN_register_class(tn) != rclass) continue; if (LR_use_cnt(lr) == 0) continue; - INT orig_conflicts = (INT)TN_MAP_Get(orig_map, tn); - INT new_conflicts = (INT)TN_MAP_Get(new_map, tn); + INT orig_conflicts = (INTPTR)TN_MAP_Get(orig_map, tn); + INT new_conflicts = (INTPTR)TN_MAP_Get(new_map, tn); if ((orig_conflicts < num_pr) && (new_conflicts < num_pr)) continue; // Do not count the cases where we do not change. if (orig_conflicts > new_conflicts) Modified: trunk/osprey/be/cg/lra.h =================================================================== --- trunk/osprey/be/cg/lra.h 2011-05-16 05:33:15 UTC (rev 3605) +++ trunk/osprey/be/cg/lra.h 2011-05-17 01:30:07 UTC (rev 3606) @@ -57,6 +57,7 @@ #include "bb.h" #include "op.h" #include "register.h" +#include "tn_map.h" /* Initialize LRA data structures for PU/region. */ extern void LRA_Init (void); ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel