From: Jeff Law Date: Wed, 27 May 2015 04:59:42 +0000 (-0600) Subject: combine.c (find_split_point): Verify that the shift count is a constant when... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7553271edd14ffe2cf3557700ebd641febd7acb1;p=gcc.git combine.c (find_split_point): Verify that the shift count is a constant when... * combine.c (find_split_point): Verify that the shift count is a constant when choosing (plus (ashift ...)) as a split point. From-SVN: r223736 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f02ba5cc1c3..bf90c864206 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-05-26 Jeff Law + * combine.c (find_split_point): Verify that the shift count is a + constant when choosing (plus (ashift ...)) as a split point. + * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs. No functional changes. diff --git a/gcc/combine.c b/gcc/combine.c index 73d141edc07..55a2e35ba48 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5157,7 +5157,8 @@ find_split_point (rtx *loc, rtx_insn *insn, bool set_src) worthless to try this split. */ if (!set_src && (GET_CODE (XEXP (x, 0)) == MULT - || GET_CODE (XEXP (x, 0)) == ASHIFT)) + || (GET_CODE (XEXP (x, 0)) == ASHIFT + && GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT))) return loc; default: