summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-stmts.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-14 09:21:15 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-14 09:21:15 +0000
commit42a6710ebf7274ea426e50765cb57149e656d483 (patch)
tree6da9c4af4cb3e9b8356610815ee0416a055f567b /gcc/tree-vect-stmts.c
parenta324d015e849fb5555910d284c4b82b02cc1717c (diff)
downloadgcc-42a6710ebf7274ea426e50765cb57149e656d483.tar.gz
PR tree-optimization/45470
* tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement can throw an exception. * tree-vect-stmts.c (vectorizable_call): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r--gcc/tree-vect-stmts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index 6d15bda937e..5069c9e55cf 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -1343,6 +1343,9 @@ vectorizable_call (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt)
if (TREE_CODE (gimple_call_lhs (stmt)) != SSA_NAME)
return false;
+ if (stmt_could_throw_p (stmt))
+ return false;
+
vectype_out = STMT_VINFO_VECTYPE (stmt_info);
/* Process function arguments. */