diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-11-15 14:52:23 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-11-15 14:52:23 +0000 |
commit | 6b58915bc37090e2fb91ce7ba94b0a6d6b733a49 (patch) | |
tree | 24a4005242502b69dc3f397ffbca92e36d73d175 /gcc/tree-vect-generic.c | |
parent | 11924f8b487dc3feb882f08b195bbcbfbacfd96d (diff) | |
download | gcc-6b58915bc37090e2fb91ce7ba94b0a6d6b733a49.zip gcc-6b58915bc37090e2fb91ce7ba94b0a6d6b733a49.tar.gz gcc-6b58915bc37090e2fb91ce7ba94b0a6d6b733a49.tar.bz2 |
dwarf2out.c (gen_enumeration_type_die): Remove unnecessary host_integerp test.
gcc/
* dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
host_integerp test.
* tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
constant.
* fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
pair with a TREE_CODE test and TREE_INT_CST_LOW.
* tree-vect-generic.c (expand_vector_divmod): Likewise.
From-SVN: r204846
Diffstat (limited to 'gcc/tree-vect-generic.c')
-rw-r--r-- | gcc/tree-vect-generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vect-generic.c b/gcc/tree-vect-generic.c index 0fcc4ea..130193c 100644 --- a/gcc/tree-vect-generic.c +++ b/gcc/tree-vect-generic.c @@ -432,7 +432,7 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0, tree cst = VECTOR_CST_ELT (op1, i); unsigned HOST_WIDE_INT ml; - if (!host_integerp (cst, unsignedp) || integer_zerop (cst)) + if (TREE_CODE (cst) != INTEGER_CST || integer_zerop (cst)) return NULL_TREE; pre_shifts[i] = 0; post_shifts[i] = 0; @@ -453,7 +453,7 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0, if (unsignedp) { unsigned HOST_WIDE_INT mh; - unsigned HOST_WIDE_INT d = tree_low_cst (cst, 1) & mask; + unsigned HOST_WIDE_INT d = TREE_INT_CST_LOW (cst) & mask; if (d >= ((unsigned HOST_WIDE_INT) 1 << (prec - 1))) /* FIXME: Can transform this into op0 >= op1 ? 1 : 0. */ @@ -523,7 +523,7 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0, } else { - HOST_WIDE_INT d = tree_low_cst (cst, 0); + HOST_WIDE_INT d = TREE_INT_CST_LOW (cst); unsigned HOST_WIDE_INT abs_d; if (d == -1) |