[PATCH] D151916: [DAG] Peek through any trunc/zext when combining select into shifts.

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 05:13:52 PDT 2023


deadalnix updated this revision to Diff 528381.
deadalnix added a comment.

Check the truncate doesn't lose information.
Remove the zero extent case as it seems to only regress things.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151916

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/dagcombine-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151916.528381.patch
Type: text/x-patch
Size: 5702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230605/53570713/attachment.bin>


More information about the llvm-commits mailing list