tree-vect-loop.c (vect_analyze_loop_operations): Use auto_vec for cost vector to...
authorRichard Biener <rguenther@suse.de>
Tue, 22 Jan 2019 08:30:51 +0000 (08:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 Jan 2019 08:30:51 +0000 (08:30 +0000)
commitc4d825b5e780cea568317b2ca2c82420b677f119
tree7234283b2ff7d4fe2677b76d48a29111f19b5033
parent8fcc359957360b4911fdf3b85b8cdaea6981fd62
tree-vect-loop.c (vect_analyze_loop_operations): Use auto_vec for cost vector to fix memleak.

2019-01-22  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_analyze_loop_operations): Use
auto_vec for cost vector to fix memleak.
(vectorize_fold_left_reduction): Properly gather SLP defs.
(vectorizable_comparison): Do not swap operands to properly
gather SLP defs.

From-SVN: r268137
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c