[PATCH] Add support bswap16 to/from memory compiling to rev16 on ARM/Thumb
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...
Size: 3826 bytes
Desc: not available
More information about the llvm-commits