diff options
| author | Adam Nemet <anemet@apple.com> | 2014-03-07 23:56:28 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2014-03-07 23:56:28 +0000 |
| commit | 316d3e308530cfa1abdf3e75bbf24640b1beb3c3 (patch) | |
| tree | c8210be923c8566448b2ecc6510f9a295d37f3d4 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 622f350944ce4cba63f58754ef4f83d0c16f0338 (diff) | |
| download | llvm-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/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
