[PATCH] Add support bswap16 to/from memory compiling to rev16 on ARM/Thumb

Louis Gerbarg lgg at apple.com
Fri May 9 15:27:09 PDT 2014

Currently most __builtin_bswap16() intrinsics from the frontend end up generating sup-optimal code due to legalization promoting some of the operands to i32s during load/stores. That results in the backend generating a rev and an lsr instead of a rev16. This patch adds patterns that catch those situations and generate a rev16.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-bswap16-to-from-memory-compiling-to-rev1.patch
Type: application/octet-stream
Size: 3826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140509/dc715332/attachment.obj>

More information about the llvm-commits mailing list