diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 07:42:09 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 07:42:09 +0000 |
commit | f9ae6f95055fe8521d46b1f2d87f7062d9977104 (patch) | |
tree | ae798e9ef20864aa44736ca475453536bd92e00f /gcc/tree-ssa-math-opts.c | |
parent | dd76621fd65db1958572949115035a8c3646d846 (diff) | |
download | gcc-f9ae6f95055fe8521d46b1f2d87f7062d9977104.tar.gz |
Remove tree_to_hwi.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 77900876930..0a91a6d90a3 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1763,7 +1763,7 @@ find_bswap_1 (gimple stmt, struct symbolic_number *n, int limit) case RSHIFT_EXPR: case LROTATE_EXPR: case RROTATE_EXPR: - if (!do_shift_rotate (code, n, (int)tree_to_hwi (rhs2))) + if (!do_shift_rotate (code, n, (int)TREE_INT_CST_LOW (rhs2))) return NULL_TREE; break; CASE_CONVERT: @@ -1856,7 +1856,7 @@ find_bswap (gimple stmt) increase that number by three here in order to also cover signed -> unsigned converions of the src operand as can be seen in libgcc, and for initial shift/and operation of the src operand. */ - limit = tree_to_hwi (TYPE_SIZE_UNIT (gimple_expr_type (stmt))); + limit = TREE_INT_CST_LOW (TYPE_SIZE_UNIT (gimple_expr_type (stmt))); limit += 1 + (int) ceil_log2 ((unsigned HOST_WIDE_INT) limit); source_expr = find_bswap_1 (stmt, &n, limit); |