]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/101505 - properly determine stmt precision for PHIs
authorRichard Biener <rguenther@suse.de>
Mon, 19 Jul 2021 11:29:16 +0000 (13:29 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 Aug 2021 08:43:38 +0000 (10:43 +0200)
commitc891d268c446bd01f82e256e24580afcb3b526ae
tree4e6d8011019aa7de1379179d6e291a656564b3f8
parent129bf4f2efc0ec22ee14affd8c8a3bfe07896356
tree-optimization/101505 - properly determine stmt precision for PHIs

Loop vectorization pattern recog fails to walk PHIs when determining
stmt precisions.  This fails to recognize non-mask uses for bools
in PHIs and outer loop vectorization.

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

PR tree-optimization/101505
* tree-vect-patterns.c (vect_determine_precisions): Walk
PHIs also for loop vectorization.

* gcc.dg/vect/pr101505.c: New testcase.

(cherry picked from commit 8df3ee8f7d85d0708f3c3ca96b55c9230c2ae9f0)
gcc/testsuite/gcc.dg/vect/pr101505.c [new file with mode: 0644]
gcc/tree-vect-patterns.c