Commit 078152a2 by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/24653 (EON regressed seriously on x86-64)

	PR tree-optimization/24653
	* tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.

From-SVN: r107304
parent 1c287121
2005-11-21 Jan Hubicka <jh@suse.cz>
PR tree-optimization/24653
* tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
2005-11-21 Uros Bizjak <uros@kss-loka.si>
* config/i386/predicates.md (ax_reg_operand): New predicate.
......
......@@ -879,6 +879,10 @@ ccp_fold (tree stmt)
op0 = get_value (op0, true)->value;
}
if ((code == NOP_EXPR || code == CONVERT_EXPR)
&& tree_ssa_useless_type_conversion_1 (TREE_TYPE (rhs),
TREE_TYPE (op0)))
return op0;
return fold_unary (code, TREE_TYPE (rhs), op0);
}
......
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