[PATCH] D20591: [InstCombine] Catch more bswap cases missed due to zext and truncs.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 12:36:01 PDT 2016


mcrosier created this revision.
mcrosier added reviewers: majnemer, jmolloy, t.p.northover, gberry.
mcrosier added a subscriber: llvm-commits.
Herald added a subscriber: aemerson.

This patch addresses PR27824: https://llvm.org/bugs/show_bug.cgi?id=27824

On AArch64 the i16 type is not legal type, so we end up with IR like what is included in the test cases.

Please take a look,
 Chad

http://reviews.llvm.org/D20591

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  lib/Transforms/Utils/Local.cpp
  test/Transforms/InstCombine/bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20591.58287.patch
Type: text/x-patch
Size: 6910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160524/1aef8234/attachment.bin>


More information about the llvm-commits mailing list