[PATCH] D117508: [SDAG] add demanded bits transform for bswap

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 13:59:54 PST 2022


spatel updated this revision to Diff 400637.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:

1. Removed unnecessary shift amount type-checks.
2. Added shift operation legality check (MSP430 tests fail without that).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117508/new/

https://reviews.llvm.org/D117508

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/AArch64/bswap-known-bits.ll
  llvm/test/CodeGen/X86/combine-bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117508.400637.patch
Type: text/x-patch
Size: 4075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220117/756cc641/attachment.bin>


More information about the llvm-commits mailing list