make vect_finish_stmt_generation work w/o stmt_vec_info
authorRichard Biener <rguenther@suse.de>
Mon, 18 May 2020 14:01:08 +0000 (16:01 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 28 May 2020 10:25:15 +0000 (12:25 +0200)
commitb0aae85bd689cf581ac85d02a7e84eae0015dbe5
treec025a24fce850a520e8a754cce53742aa78c2dfd
parent09df85393ce5501a28359d159670fd05c4d70abf
make vect_finish_stmt_generation work w/o stmt_vec_info

This makes the call chain below vec_init_vector happy with a NULL
stmt_vec_info which is used as "context".

2020-05-27  Richard Biener  <rguenther@suse.de>

* tree-vect-stmts.c (vect_finish_stmt_generation_1):
Conditionalize stmt_info use, assert the new stmt cannot throw
when not specified.
(vect_finish_stmt_generation): Adjust assert.
gcc/tree-vect-stmts.c