diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-08 00:31:46 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-08 00:31:46 +0000 |
commit | 460a73d2d509509c14ad680f59dbafc75fbc6fb5 (patch) | |
tree | 4e20642dd19609fdd06965db847807de3410af17 /gcc/combine.c | |
parent | 525f64417b7c5e43bfa1a80070223446596f87f5 (diff) | |
download | gcc-460a73d2d509509c14ad680f59dbafc75fbc6fb5.tar.gz |
(try_combine): Update split_code after converting MULT
to ASHIFT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 9 |
1 files 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 |