PR/17892 was filed because gcc-4.0 performs an unsafe optimization of (X*C)*C into X*(C*C). Fix to this PR prevents certain safe transformation; such as X*2.0*2.0->X*4.0 from taking place. This PR is to track this enhancement.
-- Summary: Perform associative optimization when it is safe Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: roger at eyesopen dot com ReportedBy: fjahanian at apple dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: apple-ppc-darwin GCC host triplet: apple-ppc-darwin GCC target triplet: apple-ppc-darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17955