Author: dgilmore Date: 2012-08-21 01:47:27 -0400 (Tue, 21 Aug 2012) New Revision: 4015
Modified: trunk/osprey/be/cg/gra_mon/gra_interfere.cxx Log: Changed a test in INTERFERE_MGR::Create_End. TARG_X8664 specific change. This tests determines whether an interference "set" is stored as a vector or a bit vector. This test will now generate the same result given the same input parameters whether the compiler is built for 32 or 64 bit. See associated comments concerning the issues at hand. CR: Sun Chan Modified: trunk/osprey/be/cg/gra_mon/gra_interfere.cxx =================================================================== --- trunk/osprey/be/cg/gra_mon/gra_interfere.cxx 2012-08-20 20:04:42 UTC (rev 4014) +++ trunk/osprey/be/cg/gra_mon/gra_interfere.cxx 2012-08-21 05:47:27 UTC (rev 4015) @@ -1,5 +1,9 @@ /* + * Copyright (C) 2012 Advanced Micro Devices, Inc. All Rights Reserved. + */ +/* + Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it @@ -173,7 +177,24 @@ INTERFERE_MGR::Create_End( void ) { INTERFERE result; +#ifndef TARG_X8664 size_t v_size = neighbor_count * sizeof(LRANGE*); +#else + /* This change was made to ensure that register allocation is + * the same independent of the compiler being built -m32 or -m64. + * Note that the change may waste memory when the compiler is built + * -m64, but given the larger memory space this is less of an issue. + * TODO: + * Determine whether LRANGE_NEIGHBOR_ITER can be made to generate + * the same edge list independent of the storage medium (vector + * or bitset). + * + * For debugging purposes, add a CG option that will force the + * interference information to be stored as a bitset or vector. + */ + + size_t v_size = neighbor_count * 4; +#endif size_t s_size = LRANGE_SET_Size_Alloc_Size(neighbor_id_max + 1); // Decide whether to represent it with a bitset or with a vector based on ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel