diff options
| author | Adam Nemet <anemet@apple.com> | 2014-03-12 18:02:33 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2014-03-12 18:02:33 +0000 |
| commit | b667c3fc261a0ddedccf31b20c5500b11182891a (patch) | |
| tree | 831f421f326fb70c9745bf8feb0eab62d2d84136 /llvm/test/tools/llvm-readobj/relocations.test | |
| parent | 181405d3c23ae4f17d469fdb6b73bc6ed389447f (diff) | |
| download | bcm5719-llvm-b667c3fc261a0ddedccf31b20c5500b11182891a.tar.gz bcm5719-llvm-b667c3fc261a0ddedccf31b20c5500b11182891a.zip | |
[X86] Refactor peepholes for masked shift amount into a multiclass
The peephole (shift x, (and y, 31)) -> (shift x, y) is repeated for each
integer type and each shift variant.
To improve this a new multiclass is added that covers all integer types. The
shift patterns are now instantiated from this. I am planning to add new
instances for rotates as well.
No functional change intended:
* test/CodeGen/X86/shift-and.ll provides coverage
* Compared the expanded tablegen output and matched up the defs for these
Pat<>s before and after
llvm-svn: 203685
Diffstat (limited to 'llvm/test/tools/llvm-readobj/relocations.test')
0 files changed, 0 insertions, 0 deletions

