Pass a vec_info to simple_integer_narrowing
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 21 Oct 2019 06:41:10 +0000 (06:41 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 21 Oct 2019 06:41:10 +0000 (06:41 +0000)
2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
(vectorizable_call): Update call accordingly.

From-SVN: r277230

gcc/ChangeLog
gcc/tree-vect-stmts.c

index efb89174cab698c82e5cae1aecd8112829a407ac..f29cdda223f4df1bd9f736585a949c433f6466d0 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
+       (vectorizable_call): Update call accordingly.
+
 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
 
        * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
index 35fe141870cdf4a4e5f62805922a0bbdb747046f..55651ebd8e6a94b1ad6ebf016f126e34fa2aebd9 100644 (file)
@@ -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);