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

Adam Nemet anemet at apple.com
Mon Mar 3 17:15:15 PST 2014

Extend what's currently done for shift because the HW performs this masking

   (rotl:i32 x, (and y, 31)) -> (rotl:i32 x, y)

I use the newly factored out multiclass that was only supporting shifts so

For testing I extended my testcase for the new rotation idiom.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-X86-Add-peephole-for-masked-rotate-amount.patch
Type: application/octet-stream
Size: 2157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140303/672fb941/attachment.obj>

More information about the llvm-commits mailing list