[PATCH] D42948: [SelectionDAG] Support some SimplifySetCC cases for comparing against vector splats of constants.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 23:12:34 PST 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added subscribers: kristof.beyls, javed.absar, sdardis, aemerson.

This supports things like

(setcc uge X, 0) -> true
(setcc ugt X, 0) -> (setcc ne X, 0)

The AArch64 test changes are to avoid using things that we can simplify now. I'll probably commit these separately.


Repository:
  rL LLVM

https://reviews.llvm.org/D42948

Files:
  include/llvm/CodeGen/SelectionDAG.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/AArch64/arm64-neon-compare-instructions.ll
  test/CodeGen/AArch64/neon-compare-instructions.ll
  test/CodeGen/Mips/msa/compare.ll
  test/CodeGen/X86/avx512-insert-extract.ll
  test/CodeGen/X86/avx512-mask-op.ll
  test/CodeGen/X86/avx512-schedule.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42948.132940.patch
Type: text/x-patch
Size: 39609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180206/8fa983a5/attachment-0001.bin>


More information about the llvm-commits mailing list