Commit 4413b636 by Roger Sayle Committed by Roger Sayle

utils.c (max_size): Use MIN_EXPR to find the minimum value of a COND_EXPR.


	* utils.c (max_size): Use MIN_EXPR to find the minimum value of a
	COND_EXPR.

From-SVN: r81721
parent daca85ca
2004-05-11 Roger Sayle <roger@eyesopen.com>
* utils.c (max_size): Use MIN_EXPR to find the minimum value of a
COND_EXPR.
2004-05-10 Doug Rupp <rupp@gnat.com> 2004-05-10 Doug Rupp <rupp@gnat.com>
* 5qsystem.ads: Remove Short_Address subtype declaration. Moved to * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
......
...@@ -2215,7 +2215,7 @@ max_size (tree exp, int max_p) ...@@ -2215,7 +2215,7 @@ max_size (tree exp, int max_p)
if (code == SAVE_EXPR) if (code == SAVE_EXPR)
return exp; return exp;
else if (code == COND_EXPR) else if (code == COND_EXPR)
return fold (build (MAX_EXPR, type, return fold (build (max_p ? MAX_EXPR : MIN_EXPR, type,
max_size (TREE_OPERAND (exp, 1), max_p), max_size (TREE_OPERAND (exp, 1), max_p),
max_size (TREE_OPERAND (exp, 2), max_p))); max_size (TREE_OPERAND (exp, 2), max_p)));
else if (code == CALL_EXPR && TREE_OPERAND (exp, 1) != 0) else if (code == CALL_EXPR && TREE_OPERAND (exp, 1) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment