tree-optimization/97746 - fix order of mask precision computes
authorRichard Biener <rguenther@suse.de>
Mon, 9 Nov 2020 12:55:11 +0000 (13:55 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 9 Nov 2020 13:57:10 +0000 (14:57 +0100)
commitec735bc7646500570d9d6e45ef335e6d547b1433
treebc3b8001a49c69b2d5197331b4892f7315ac0008
parente38cd64ac6cb4da740d643589c857d2f910b6bba
tree-optimization/97746 - fix order of mask precision computes

This fixes the order of walking PHIs and stmts for BB mask
precision compute.

2020-11-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97746
* tree-vect-patterns.c (vect_determine_precisions): First walk PHIs.

* gcc.dg/vect/bb-slp-pr97746.c: New testcase.
gcc/testsuite/gcc.dg/vect/bb-slp-pr97746.c [new file with mode: 0644]
gcc/tree-vect-patterns.c