simplify-rtx.c (associative_constant_p): New function to test whether an RTX expressi...
authorRoger Sayle <roger@eyesopen.com>
Sun, 17 Aug 2003 19:24:09 +0000 (19:24 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 17 Aug 2003 19:24:09 +0000 (19:24 +0000)
commitdd61aa98caa43a54970c2a4eecf9c4e3f325d14e
tree2aba6d2eebdcd078750a157d135eb00b220790dd
parentfde46628fa4b368217a182e8885475fe5279cc2e
simplify-rtx.c (associative_constant_p): New function to test whether an RTX expression is an immediate constant.

* simplify-rtx.c (associative_constant_p): New function to test
whether an RTX expression is an immediate constant.
(simplify_associative_operation): New function to perform some
reassociation optimizations of associative binary expressions.
(simplify_binary_operation): Use simplify_associative_operation
to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
Floating point expressions are only reassociated when unsafe
math optimizations are permitted.

From-SVN: r70521
gcc/ChangeLog
gcc/simplify-rtx.c