combine.c (combine_simplify_rtx): Also recompute 'mode' if the call to simplify_binary_operation returns a new...

2001-07-06  Diego Novillo  <dnovillo@redhat.com>

	* combine.c (combine_simplify_rtx): Also recompute 'mode' if the
	call to simplify_binary_operation returns a new pattern.

From-SVN: r43826
This commit is contained in:
Diego Novillo 2001-07-06 22:39:17 +00:00 committed by Diego Novillo
parent 39bd294869
commit 4531c1c787
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-07-06 Diego Novillo <dnovillo@redhat.com>
* combine.c (combine_simplify_rtx): Also recompute 'mode' if the
call to simplify_binary_operation returns a new pattern.
2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
* glimits.h (__SHRT_MAX__): New.

View File

@ -3702,7 +3702,12 @@ combine_simplify_rtx (x, op0_mode, last, in_dest)
}
if (temp)
x = temp, code = GET_CODE (temp), op0_mode = VOIDmode;
{
x = temp;
code = GET_CODE (temp);
op0_mode = VOIDmode;
mode = GET_MODE (temp);
}
/* First see if we can apply the inverse distributive law. */
if (code == PLUS || code == MINUS