From: Jim Wilson Date: Tue, 8 Nov 1994 00:31:46 +0000 (-0800) Subject: (try_combine): Update split_code after converting MULT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dc8a823f9d3191869cf4e3d61ca6429ab177ef3;p=gcc.git (try_combine): Update split_code after converting MULT to ASHIFT. From-SVN: r8403 --- 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