convert.c (strip_float_extension): Skip both NOP_EXPR and CONVERT_EXPR floating point extensions.

* convert.c (strip_float_extension): Skip both NOP_EXPR and
	CONVERT_EXPR floating point extensions.

From-SVN: r83565
This commit is contained in:
Roger Sayle 2004-06-23 20:42:45 +00:00 committed by Roger Sayle
parent 33c94679bd
commit 7c243eef39
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-06-23 Roger Sayle <roger@eyesopen.com>
* convert.c (strip_float_extension): Skip both NOP_EXPR and
CONVERT_EXPR floating point extensions.
2004-06-23 Diego Novillo <dnovillo@redhat.com>
* Makefile.in (tree-vn.o): New.

View File

@ -99,7 +99,8 @@ strip_float_extensions (tree exp)
return build_real (type, real_value_truncate (TYPE_MODE (type), orig));
}
if (TREE_CODE (exp) != NOP_EXPR)
if (TREE_CODE (exp) != NOP_EXPR
&& TREE_CODE (exp) != CONVERT_EXPR)
return exp;
sub = TREE_OPERAND (exp, 0);