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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 6 08:55:12 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGac522f87002f: [DAGCombiner] Fold (sext (not i1 x)) -> (add (zext i1 x), -1) (authored by laytonio, committed by spatel).
Herald added a subscriber: jrtc27.

Changed prior to commit:
  https://reviews.llvm.org/D91589?vs=308494&id=309774#toc

Repository:
  rG LLVM Github Monorepo

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.309774.patch
Type: text/x-patch
Size: 9125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201206/16850ed5/attachment.bin>


More information about the llvm-commits mailing list