diff options
author | Kenneth Zadeck <zadeck@naturalbridge.com> | 2014-05-06 16:25:05 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2014-05-06 16:25:05 +0000 |
commit | 807e902eea17f3132488c256c963823976b2348c (patch) | |
tree | e5e1af94eb1502ba893bd6ce4a11f68877ff62a9 /gcc/tree-vect-stmts.c | |
parent | 6122336c832dc4dfedc49279549caddce86306ff (diff) | |
download | gcc-807e902eea17f3132488c256c963823976b2348c.zip gcc-807e902eea17f3132488c256c963823976b2348c.tar.gz gcc-807e902eea17f3132488c256c963823976b2348c.tar.bz2 |
Merge in wide-int.
From-SVN: r210113
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 1a51d6d..b8547cb 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -2992,11 +2992,10 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, ? POINTER_PLUS_EXPR : PLUS_EXPR; tree type = POINTER_TYPE_P (TREE_TYPE (op)) ? sizetype : TREE_TYPE (op); - double_int cst - = double_int::from_shwi - (bestn->simdclone->args[i].linear_step); - cst *= double_int::from_uhwi (ncopies * nunits); - tree tcst = double_int_to_tree (type, cst); + widest_int cst + = wi::mul (bestn->simdclone->args[i].linear_step, + ncopies * nunits); + tree tcst = wide_int_to_tree (type, cst); tree phi_arg = copy_ssa_name (op, NULL); new_stmt = gimple_build_assign_with_ops (code, phi_arg, phi_res, tcst); @@ -3017,11 +3016,10 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, ? POINTER_PLUS_EXPR : PLUS_EXPR; tree type = POINTER_TYPE_P (TREE_TYPE (op)) ? sizetype : TREE_TYPE (op); - double_int cst - = double_int::from_shwi - (bestn->simdclone->args[i].linear_step); - cst *= double_int::from_uhwi (j * nunits); - tree tcst = double_int_to_tree (type, cst); + widest_int cst + = wi::mul (bestn->simdclone->args[i].linear_step, + j * nunits); + tree tcst = wide_int_to_tree (type, cst); new_temp = make_ssa_name (TREE_TYPE (op), NULL); new_stmt = gimple_build_assign_with_ops (code, new_temp, |