From 6c261c667801eee46a6221d3681d17493c0bbd65 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 21 Oct 2019 06:41:10 +0000 Subject: [PATCH] Pass a vec_info to simple_integer_narrowing 2019-10-21 Richard Sandiford gcc/ * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info. (vectorizable_call): Update call accordingly. From-SVN: r277230 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-stmts.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efb89174cab..f29cdda223f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-21 Richard Sandiford + + * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info. + (vectorizable_call): Update call accordingly. + 2019-10-21 Richard Sandiford * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info. diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 35fe141870c..55651ebd8e6 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -3175,7 +3175,7 @@ vectorizable_bswap (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi, *CONVERT_CODE. */ static bool -simple_integer_narrowing (tree vectype_out, tree vectype_in, +simple_integer_narrowing (vec_info *, tree vectype_out, tree vectype_in, tree_code *convert_code) { if (!INTEGRAL_TYPE_P (TREE_TYPE (vectype_out)) @@ -3369,7 +3369,7 @@ vectorizable_call (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi, if (cfn != CFN_LAST && (modifier == NONE || (modifier == NARROW - && simple_integer_narrowing (vectype_out, vectype_in, + && simple_integer_narrowing (vinfo, vectype_out, vectype_in, &convert_code)))) ifn = vectorizable_internal_function (cfn, callee, vectype_out, vectype_in); -- 2.30.2