[patch] Two fixes to the vpermilvar optimization

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Apr 28 20:05:51 PDT 2014


When I added instcomine logic to handle vpermilvar's pd and 256
variants I incorrectly assumed that the intel architecture was more
regular than what it actually is.

A coworker pointed out that the _256 variants use indexes into the
individual 128 bit lanes and while fixing that I noticed I also had to
mask out unused bits.

The attached patch fixes both issues.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140428/2fee9fed/attachment.obj>


More information about the llvm-commits mailing list