tree-optimization/101229 - fix vectorizer SLP hybrid detection with PHIs
authorRichard Biener <rguenther@suse.de>
Mon, 28 Jun 2021 09:05:46 +0000 (11:05 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 28 Jun 2021 09:55:24 +0000 (11:55 +0200)
commitf80c4eaca0805bc9e68ed944519519c3dd1c12e1
treefe862ede354692a749f1bc85bdef264d22572217
parentad26c076aaa6f9af144c33c9c04c5dc8010ad156
tree-optimization/101229 - fix vectorizer SLP hybrid detection with PHIs

This fixes the missing handling of PHIs in gimple_walk_op which causes
the new vectorizer SLP hybrid detection scheme to fail.

2021-06-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101229
* gimple-walk.c (gimple_walk_op): Handle PHIs.

* gcc.dg/torture/pr101229.c: New testcase.
gcc/gimple-walk.c
gcc/testsuite/gcc.dg/torture/pr101229.c [new file with mode: 0644]