This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Improve tree-ssa-reassoc for FP


Since Daniel did not want to get into the fight over re-association and FP, someone
needs to so I decided to make the patch. This patch adds support to tree-ssa-reassoc
for floating point types when -funsafe-math-optimizations is supplied.


OK? Bootstrapped and tested on powerpc-darwin.

One of the new testcases tests that we don't re-associate when unsafe math
optimizations is not true and the other tests that we do it.


Thanks,
Andrew Pinski

ChangeLog:

	* tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
	types when flag_unsafe_math_optimizations is true.

testsuite/ChangeLog:

	* gcc.dg/tree-ssa/reassoc-3.c: New test.
	* gcc.dg/tree-ssa/reassoc-4.c: New test.


Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]