tree-vect-data-refs.c (vect_preserves_scalar_order_p): Make sure to use non-pattern...
authorRichard Biener <rguenther@suse.de>
Tue, 29 May 2018 14:35:28 +0000 (14:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 May 2018 14:35:28 +0000 (14:35 +0000)
commitfec0bf3084f5d5531fcdc81e13b4813db31a1750
tree00d922f4541d8d4d91852cf85ae0d6e88d15c9f6
parent0e8f29daae817560fa28935f23150307abee8f43
tree-vect-data-refs.c (vect_preserves_scalar_order_p): Make sure to use non-pattern stmts for get_earlier_stmt arguments.

2018-05-29  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_preserves_scalar_order_p): Make
sure to use non-pattern stmts for get_earlier_stmt arguments.
* tree-vectorizer.h (get_earlier_stmt): Assert we do not get
called on pattern stmts.
(get_later_stmt): Likewise.

From-SVN: r260896
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vectorizer.h