[PATCH] D91589: [DAGCombiner] Fold (sext (not i1 x)) -> (add (zext i1 x), -1)

Layton Kifer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 03:26:21 PST 2020


laytonio updated this revision to Diff 307026.
laytonio added a comment.

Remove speculatively create (not i1 x), when not used.


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

https://reviews.llvm.org/D91589

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/AArch64/select_const.ll
  llvm/test/CodeGen/ARM/select_const.ll
  llvm/test/CodeGen/PowerPC/select_const.ll
  llvm/test/CodeGen/RISCV/sext-zext-trunc.ll
  llvm/test/CodeGen/SystemZ/sext-zext.ll
  llvm/test/CodeGen/X86/pr44140.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91589.307026.patch
Type: text/x-patch
Size: 12563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201123/564502e7/attachment.bin>


More information about the llvm-commits mailing list