commit | a65ca9dcf0a7e4889a3130fa83e5e3045893a27b | [log] [tgz] |
---|---|---|
author | Adam Nemet <anemet@apple.com> | Wed Mar 12 21:20:55 2014 +0000 |
committer | Adam Nemet <anemet@apple.com> | Wed Mar 12 21:20:55 2014 +0000 |
tree | e0b2557dbcb104581d06b055c6c7cae89216bcce | |
parent | 9367c49f5de071784c732bbafeb66bf6a56c040f [diff] |
[X86] Add peephole for masked rotate amount 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. <rdar://problem/15295856> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203718 91177308-0d34-0410-b5e6-96231b3b80d8