fold-const.c (tree_swap_operands_p): disables some features when optimizing for size.

2003-10-15  G�bor L�ki  <alga@rgai.hu>

	* fold-const.c (tree_swap_operands_p): disables
	some features when optimizing for size.

From-SVN: r72538
This commit is contained in:
Gábor Lóki 2003-10-15 22:32:27 +00:00 committed by Roger Sayle
parent 5c3c9bc46b
commit a352244f95
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-10-15 Gábor Lóki <alga@rgai.hu>
* fold-const.c (tree_swap_operands_p): disables
some features when optimizing for size.
2003-10-15 David Daney <ddaney@avtrex.com>
* config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New

View File

@ -5148,6 +5148,9 @@ tree_swap_operands_p (tree arg0, tree arg1, bool reorder)
return 0;
if (TREE_CONSTANT (arg0))
return 1;
if (optimize_size)
return 0;
if (reorder && flag_evaluation_order
&& (TREE_SIDE_EFFECTS (arg0) || TREE_SIDE_EFFECTS (arg1)))