Commit f709638a by Richard Guenther Committed by Richard Biener

tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.

2008-07-14  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-pre.c (insert_into_preds_of_block): Do not call
	convert.

From-SVN: r137780
parent 1f9e1fc6
2008-07-14 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (insert_into_preds_of_block): Do not call
convert.
2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
PR target/36745
......
......@@ -2949,18 +2949,11 @@ insert_into_preds_of_block (basic_block block, unsigned int exprnum,
our IL requires all operands of a phi node have the same
type. */
tree name = PRE_EXPR_NAME (eprime);
if (TREE_TYPE (name) != type)
if (!useless_type_conversion_p (type, TREE_TYPE (name)))
{
tree builtexpr;
tree forcedexpr;
/* When eliminating casts through unions,
we sometimes want to convert a real to an integer,
which fold_convert will ICE on */
/* if (fold_convertible_p (type, name)) */
builtexpr = fold_convert (type, name);
/* else
builtexpr = convert (type, name);*/
forcedexpr = force_gimple_operand (builtexpr,
&stmts, true,
NULL);
......
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