[PATCH][X86] Add peephole for masked rotate amount

Quentin Colombet qcolombet at apple.com
Wed Mar 12 12:54:56 PDT 2014


Hi Adam,

This LGTM.

Thanks,
-Quentin

On Mar 3, 2014, at 5:15 PM, Adam Nemet <anemet at apple.com> wrote:

> Extend what's currently done for shift because the HW performs this masking
> implicitly:
> 
>   (rotl:i32 x, (and y, 31)) -> (rotl:i32 x, y)
> 
> I use the newly factored out multiclass that was only supporting shifts so
> far.
> 
> For testing I extended my testcase for the new rotation idiom.
> 
> Adam
> 
> <0006-X86-Add-peephole-for-masked-rotate-amount.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140312/c9d3aa60/attachment.html>


More information about the llvm-commits mailing list