]> 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>
Thu, 1 Jul 2021 10:31:21 +0000 (12:31 +0200)
commita3aaba68405751bae3f630669515b7ecdf77efa6
tree35e469a3db7ff4960a247fd0b1ad7de13ca3a765
parent9f6aeb85ee87c6b4e580b6b71e26cbe99e1dab70
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.
gcc/testsuite/gcc.dg/torture/pr100778.c [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.05798 seconds and 6 git commands to generate.