summaryrefslogtreecommitdiff
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2014-03-07 23:56:28 +0000
committerAdam Nemet <anemet@apple.com>2014-03-07 23:56:28 +0000
commit316d3e308530cfa1abdf3e75bbf24640b1beb3c3 (patch)
treec8210be923c8566448b2ecc6510f9a295d37f3d4 /lib/Bitcode
parent622f350944ce4cba63f58754ef4f83d0c16f0338 (diff)
downloadllvm-316d3e308530cfa1abdf3e75bbf24640b1beb3c3.tar.gz
llvm-316d3e308530cfa1abdf3e75bbf24640b1beb3c3.tar.bz2
llvm-316d3e308530cfa1abdf3e75bbf24640b1beb3c3.tar.xz
[DAGCombiner] Recognize another rotation idiom
This is the new idiom: x<<(y&31) | x>>((0-y)&31) which is recognized as: x ROTL (y&31) The change refines matchRotateSub. In Neg & (OpSize - 1) == (OpSize - Pos) & (OpSize - 1), if Pos is Pos' & (OpSize - 1) we can just use Pos' instead of Pos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions