summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-19 07:42:09 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-19 07:42:09 +0000
commitf9ae6f95055fe8521d46b1f2d87f7062d9977104 (patch)
treeae798e9ef20864aa44736ca475453536bd92e00f /gcc/tree-vect-loop.c
parentdd76621fd65db1958572949115035a8c3646d846 (diff)
downloadgcc-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-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 934f14fffca..4a68157fee6 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -1272,7 +1272,7 @@ vect_analyze_loop_form (struct loop *loop)
dump_printf (MSG_NOTE, "\n");
}
}
- else if (tree_to_hwi (number_of_iterations) == 0)
+ else if (TREE_INT_CST_LOW (number_of_iterations) == 0)
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
@@ -3614,7 +3614,7 @@ get_initial_def_for_reduction (gimple stmt, tree init_val,
if (SCALAR_FLOAT_TYPE_P (scalar_type))
init_value = build_real (scalar_type, TREE_REAL_CST (init_val));
else
- init_value = build_int_cst (scalar_type, tree_to_hwi (init_val));
+ init_value = build_int_cst (scalar_type, TREE_INT_CST_LOW (init_val));
}
else
init_value = init_val;