This is the mail archive of the
mailing list for the GCC project.
r242290 - /branches/ARM/sve-branch/gcc/tree-vec...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 17:34:40 -0000
- Subject: r242290 - /branches/ARM/sve-branch/gcc/tree-vec...
Date: Fri Nov 11 17:34:40 2016
New Revision: 242290
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.