]> 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>
Mon, 19 Jul 2021 12:21:42 +0000 (14:21 +0200)
commit8df3ee8f7d85d0708f3c3ca96b55c9230c2ae9f0
treef00c8a35a0c22853e651aacd0b5128dadd0fd31b
parent9f2bc5077debef2b046b6c10d38591ac324ad8b5
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.
gcc/testsuite/gcc.dg/vect/pr101505.c [new file with mode: 0644]
gcc/tree-vect-patterns.c