aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-patterns.c
diff options
context:
space:
mode:
authorIra Rosen <irar@il.ibm.com>2008-08-12 06:31:57 +0000
committerIra Rosen <irar@gcc.gnu.org>2008-08-12 06:31:57 +0000
commitad2dd72a0e83c5f5a4f395c1f818872b618550a5 (patch)
treed08aa3cd7532e377a8e591040da5b32f9ae3e84b /gcc/tree-vect-patterns.c
parent62641193ee06686bb2cb4d65708cc2d9b0795870 (diff)
downloadgcc-ad2dd72a0e83c5f5a4f395c1f818872b618550a5.zip
gcc-ad2dd72a0e83c5f5a4f395c1f818872b618550a5.tar.gz
gcc-ad2dd72a0e83c5f5a4f395c1f818872b618550a5.tar.bz2
tree-vectorizer.c: Depend on langhooks.h.
* tree-vectorizer.c: Depend on langhooks.h. (supportable_widening_operation): Add two arguments. Support double type conversions. (supportable_narrowing_operation): Likewise. * tree-vectorizer.h (supportable_widening_operation): Add two arguments. (supportable_narrowing_operation): Likewise. * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call supportable_widening_operation with correct arguments. * tree-vect-transform.c (vectorizable_conversion): Likewise. (vectorizable_type_demotion): Support double type conversions. (vectorizable_type_promotion): Likewise. * Makefile.in (tree-vectorizer.o): Depend on langhooks.h. From-SVN: r138988
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r--gcc/tree-vect-patterns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c
index e53780f..d5bff5a 100644
--- a/gcc/tree-vect-patterns.c
+++ b/gcc/tree-vect-patterns.c
@@ -374,6 +374,7 @@ vect_recog_widen_mult_pattern (gimple last_stmt,
tree dummy;
tree var;
enum tree_code dummy_code;
+ bool dummy_bool;
if (!is_gimple_assign (last_stmt))
return NULL;
@@ -414,7 +415,7 @@ vect_recog_widen_mult_pattern (gimple last_stmt,
if (!vectype
|| !supportable_widening_operation (WIDEN_MULT_EXPR, last_stmt, vectype,
&dummy, &dummy, &dummy_code,
- &dummy_code))
+ &dummy_code, &dummy_bool, &dummy))
return NULL;
*type_in = vectype;