Author: meiye Date: 2012-02-07 14:06:03 -0500 (Tue, 07 Feb 2012) New Revision: 3867
Modified: trunk/osprey/be/opt/opt_proactive.cxx Log: Fix for Bug 947. Allow constant values to be compared correctly. CR: Sun Chan Modified: trunk/osprey/be/opt/opt_proactive.cxx =================================================================== --- trunk/osprey/be/opt/opt_proactive.cxx 2012-02-07 08:16:09 UTC (rev 3866) +++ trunk/osprey/be/opt/opt_proactive.cxx 2012-02-07 19:06:03 UTC (rev 3867) @@ -9271,6 +9271,10 @@ if ((op1 != op2) || (WN_kid_count(wn1) != WN_kid_count(wn2))) return FALSE; + if ((op1 == OPR_INTCONST) + && (WN_const_val(wn1) != WN_const_val(wn2))) + return FALSE; + for (int i = 0; i < WN_kid_count(wn1); i++) { WN * kid1 = WN_kid(wn1, i); WN * kid2 = WN_kid(wn2, i); ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel