From 1dc8a823f9d3191869cf4e3d61ca6429ab177ef3 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 7 Nov 1994 16:31:46 -0800 Subject: [PATCH] (try_combine): Update split_code after converting MULT to ASHIFT. From-SVN: r8403 --- gcc/combine.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 4399bb0863e..8ab15473e43 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1835,8 +1835,13 @@ try_combine (i3, i2, i1) if (split_code == MULT && GET_CODE (XEXP (*split, 1)) == CONST_INT && (i = exact_log2 (INTVAL (XEXP (*split, 1)))) >= 0) - SUBST (*split, gen_rtx_combine (ASHIFT, split_mode, - XEXP (*split, 0), GEN_INT (i))); + { + SUBST (*split, gen_rtx_combine (ASHIFT, split_mode, + XEXP (*split, 0), GEN_INT (i))); + /* Update split_code because we may not have a multiply + anymore. */ + split_code = GET_CODE (*split); + } #ifdef INSN_SCHEDULING /* If *SPLIT is a paradoxical SUBREG, when we split it, it should -- 2.30.2