r242290 - /branches/ARM/sve-branch/gcc/tree-vec...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Fri Nov 11 17:34:00 GMT 2016
Author: rsandifo
Date: Fri Nov 11 17:34:40 2016
New Revision: 242290
URL: https://gcc.gnu.org/viewcvs?rev=242290&root=gcc&view=rev
Log:
Improve vector mask pattern handling
This patch allows us to recognise:
... = bool1 != bool2 ? x : y
as equivalent to:
bool tmp = bool1 ^ bool2;
... = tmp ? x : y
For the latter we were already able to find the natural number
of vector units for tmp based on the types that feed bool1 and
bool2, whereas with the former we would simply treat bool1 and
bool2 as vectorised 8-bit values, possibly requiring them to
be packed and unpacked from their natural width.
This is used by a later SVE patch.
Modified:
branches/ARM/sve-branch/gcc/tree-vect-patterns.c
More information about the Gcc-cvs
mailing list