aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2014-03-11 00:44:14 +0000
committerJim Grosbach <grosbach@apple.com>2014-03-11 00:44:14 +0000
commitc94d993adf965e06cfb9b4a23e8de7b232bdc547 (patch)
tree6797be78537981056acaf876fe94f782ebd57bf0 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent8800becdd1afc79911b344de76b5d3b9ba823374 (diff)
downloadllvm-c94d993adf965e06cfb9b4a23e8de7b232bdc547.zip
llvm-c94d993adf965e06cfb9b4a23e8de7b232bdc547.tar.gz
llvm-c94d993adf965e06cfb9b4a23e8de7b232bdc547.tar.bz2
X86: Enable ISel of 16-bit MOVBE instructions.
When the MOVBE instructions are available, use them for 16-bit endian swapping as well as for 32 and 64 bit. The patterns were already present on the instructions, but weren't being matched because the operation was unconditionally marked to 'Expand.' Change that to be conditional on whether the MOVBE instructions are available. Use 'rolw' to implement the in-register version (32 and 64 bit have the dedicated 'bswap' instruction for that). Patch by Louis Gerbarg <lgg@apple.com>. rdar://15479984 llvm-svn: 203524
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions