[llvm-dev] BSWAP matching in codegen
Friedman, Eli via llvm-dev
llvm-dev at lists.llvm.org
Thu Dec 8 12:45:24 PST 2016
On 12/8/2016 12:05 PM, Jim Lewis wrote:
>
> >> Are you sure there isn't any test coverage? As far as I can tell, the tests from
> https://reviews.llvm.org/rL133503 are still in the tree.
>
> I looked at those, but none of them include the full pattern that
> decomposes into bswap and rol. I debugged through the X86 bswap.ll
> test and verified none of those cases make it through MatchBSwapHWord
> (they get handled in MatchBSwapHWordLow instead).
>
The x86 tests don't, but the ARM tests do: see, for example, test6 in
test/CodeGen/ARM/rev.ll. If you compile that for x86, you get the
expected bswap+rol.
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161208/67f34b7f/attachment.html>
More information about the llvm-dev
mailing list