aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2001-07-06 22:39:17 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2001-07-06 18:39:17 -0400
commit4531c1c787e88e4fa2d90020c0bc305cf244c37d (patch)
tree4bb595e9695782a1b2b7ecfc8be6605d5cf81267 /gcc/combine.c
parent39bd294869837e513aac7763944c20b727ffaa5b (diff)
downloadgcc-4531c1c787e88e4fa2d90020c0bc305cf244c37d.zip
gcc-4531c1c787e88e4fa2d90020c0bc305cf244c37d.tar.gz
gcc-4531c1c787e88e4fa2d90020c0bc305cf244c37d.tar.bz2
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
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index f64feca..2e41a23 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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