summaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-09 08:23:37 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-09 08:23:37 +0000
commitfc5f8be0c3e365157522ec65e3ffd47921207bc3 (patch)
tree9ff1243e93a071aa2f7c45e26f7cf38a8b627292 /gcc/tree-vectorizer.h
parenta0041abf187421a1033268e457bb0b350210f62b (diff)
downloadgcc-fc5f8be0c3e365157522ec65e3ffd47921207bc3.tar.gz
2015-12-09 Richard Biener <rguenther@suse.de>
* tree-vect-stmts.c (vectorizable_load): Set new vinfo only if it was not yet set. * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't overwrite an existing entry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r--gcc/tree-vectorizer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h
index 327f08d79ed..b07f2700098 100644
--- a/gcc/tree-vectorizer.h
+++ b/gcc/tree-vectorizer.h
@@ -715,7 +715,10 @@ set_vinfo_for_stmt (gimple *stmt, stmt_vec_info info)
stmt_vec_info_vec.safe_push (info);
}
else
- stmt_vec_info_vec[uid - 1] = info;
+ {
+ gcc_checking_assert (info == NULL);
+ stmt_vec_info_vec[uid - 1] = info;
+ }
}
/* Return the earlier statement between STMT1 and STMT2. */