This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Try vector<bool> as a new representation for vector masks


On 09/01/2015 07:08 AM, Ilya Enkovich wrote:
On 27 Aug 09:55, Richard Biener wrote:
I suggest you try modifying those parts first according to this
scheme that will most likely uncover issues we missed.

Thanks, Richard.


I tried to implement this scheme and apply it for MASK_LOAD and
MASK_STORE.  There were no major issues (for now).
So do we have enough confidence in this representation that we want to go ahead and commit to it?


I had to introduce significant number of new patterns in i386 target
to support new optabs.  The reason was vector compare was never
expanded separately and always was a part of a vec_cond expansion.
One could argue we should have fixed this already, so I don't see the new patterns as a bad thing, but instead they're addressing a long term mis-design.



For now I still don't disable bool patterns, thus new masks apply to
masked loads and stores only.  Patch is also not tested and tried on
several small tests only.  Could you please look at what I currently
have and say if it's in sync with your view on vector masking?
I'm going to let Richi run with this for the most part -- but I will chime in with a thank you for being willing to bounce this around a bit while we figure out the representational issues.


jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]