]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/100778 - fix placement of trapping vectorized ops
authorRichard Biener <rguenther@suse.de>
Thu, 1 Jul 2021 08:35:38 +0000 (10:35 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 13 Jul 2021 09:46:06 +0000 (11:46 +0200)
commitf32145c27eec468247353b59ec5f62fcba3ae2c7
treec516212e6ac9b3fd3bad92deec60d7aef3ed6dc4
parent1c2e5ab1468d959200334f2f5039d8d6af01f9fb
tree-optimization/100778 - fix placement of trapping vectorized ops

This avoids placing possibly trapping vectorized operations where
the corresponding scalar operation was possibly not executed.

2021-01-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/100778
* tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
vectorized ops ahead of their scalar BB.

* gcc.dg/torture/pr100778.c: New testcase.

(cherry picked from commit a3aaba68405751bae3f630669515b7ecdf77efa6)
gcc/testsuite/gcc.dg/torture/pr100778.c [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.065402 seconds and 6 git commands to generate.