Commit 575140c2 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/41271 (FAIL: gcc.dg/matrix/matrix-2.c…

re PR tree-optimization/41271 (FAIL: gcc.dg/matrix/matrix-2.c scan-ipa-dump-times matrix-reorg "Flattened 2 dimensions" 1)

2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41271
	* tree-ssa.c (useless_type_conversion_p): Drop qualifiers
	before comparing function argument types.

From-SVN: r151453
parent b2acf594
2009-09-05 Richard Guenther <rguenther@suse.de>
PR middle-end/41271
* tree-ssa.c (useless_type_conversion_p): Drop qualifiers
before comparing function argument types.
2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR target/41024 PR target/41024
......
...@@ -1289,7 +1289,8 @@ useless_type_conversion_p (tree outer_type, tree inner_type) ...@@ -1289,7 +1289,8 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
if (!TYPE_ARG_TYPES (outer_type)) if (!TYPE_ARG_TYPES (outer_type))
return true; return true;
/* If the argument types are compatible the conversion is useless. */ /* If the unqualified argument types are compatible the conversion
is useless. */
if (TYPE_ARG_TYPES (outer_type) == TYPE_ARG_TYPES (inner_type)) if (TYPE_ARG_TYPES (outer_type) == TYPE_ARG_TYPES (inner_type))
return true; return true;
...@@ -1298,8 +1299,9 @@ useless_type_conversion_p (tree outer_type, tree inner_type) ...@@ -1298,8 +1299,9 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
outer_parm && inner_parm; outer_parm && inner_parm;
outer_parm = TREE_CHAIN (outer_parm), outer_parm = TREE_CHAIN (outer_parm),
inner_parm = TREE_CHAIN (inner_parm)) inner_parm = TREE_CHAIN (inner_parm))
if (!useless_type_conversion_p (TREE_VALUE (outer_parm), if (!useless_type_conversion_p
TREE_VALUE (inner_parm))) (TYPE_MAIN_VARIANT (TREE_VALUE (outer_parm)),
TYPE_MAIN_VARIANT (TREE_VALUE (inner_parm))))
return false; return false;
/* If there is a mismatch in the number of arguments the functions /* If there is a mismatch in the number of arguments the functions
......
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