aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2014-03-12 18:02:33 +0000
committerAdam Nemet <anemet@apple.com>2014-03-12 18:02:33 +0000
commitb667c3fc261a0ddedccf31b20c5500b11182891a (patch)
tree831f421f326fb70c9745bf8feb0eab62d2d84136 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent181405d3c23ae4f17d469fdb6b73bc6ed389447f (diff)
downloadllvm-b667c3fc261a0ddedccf31b20c5500b11182891a.zip
llvm-b667c3fc261a0ddedccf31b20c5500b11182891a.tar.gz
llvm-b667c3fc261a0ddedccf31b20c5500b11182891a.tar.bz2
[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/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions