Make vectorizable_operation punt early on codes it doesn't handle
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 29 Nov 2019 14:47:28 +0000 (14:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 29 Nov 2019 14:47:28 +0000 (14:47 +0000)
commit4177e933b309408e69eb5561fee7a3cc5e6f8899
tree543524ce049aecc3249f46a208b26abd8c6b0642
parentce19a4822794992097deab96bf15bf78ff481ea1
Make vectorizable_operation punt early on codes it doesn't handle

vectorizable_operation returned false for codes that are handled by
vectorizable_shift, but only after it had already done a lot of work.
Checking earlier should be more efficient and avoid polluting the logs
with duplicate info.

Also, there was no such early-out for comparisons or COND_EXPRs.
Fixing that avoids a false scan-tree-dump hit with a later patch.

2019-11-29  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-stmts.c (vectorizable_operation): Punt early
on codes that are handled elsewhere.

From-SVN: r278848
gcc/ChangeLog
gcc/tree-vect-stmts.c