]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (tree_swap_operands_p): New function to determine the prefered ordering...
authorRoger Sayle <roger@eyesopen.com>
Tue, 16 Sep 2003 17:08:50 +0000 (17:08 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 16 Sep 2003 17:08:50 +0000 (17:08 +0000)
commit37af03cba8d6cd7b1fd7830748e3d9d6e47f3009
tree6e5d15370ebc93fe3fe8a8b8f79e3514f5367460
parentae8803a8e1d21a5813775816ae915f4ccd92d6c5
fold-const.c (tree_swap_operands_p): New function to determine the prefered ordering of operands.

* fold-const.c (tree_swap_operands_p): New function to determine
the prefered ordering of operands.
(fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
operands to commutative, comparison or ternary operators.  Replace
uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
transformation of A ? B : C into !A ? C : B.

From-SVN: r71438
gcc/ChangeLog
gcc/fold-const.c