diff options
author | Jeff Law <law@redhat.com> | 2015-05-26 22:59:42 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-05-26 22:59:42 -0600 |
commit | 7553271edd14ffe2cf3557700ebd641febd7acb1 (patch) | |
tree | e89a8c818504035fe97144ddc757fe6a9f2415f2 /gcc | |
parent | 7499cd25dc142d0271d5eb4ab130ad9c63470e66 (diff) | |
download | gcc-7553271edd14ffe2cf3557700ebd641febd7acb1.zip gcc-7553271edd14ffe2cf3557700ebd641febd7acb1.tar.gz gcc-7553271edd14ffe2cf3557700ebd641febd7acb1.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/combine.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f02ba5c..bf90c86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-05-26 Jeff Law <law@redhat.com> + * 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 73d141e..55a2e35 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: |