[PATCH] D119334: [AArch64][SVE] Fold away SETCC if original input was predicate vector.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 06:36:12 PST 2022


sdesmalen created this revision.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This adds the following two folds:

Fold 1:

  setcc_merge_zero(
      all_active, extend(nxvNi1 ...), != splat(0))

-> nxvNi1 ...

Fold 2:

  setcc_merge_zero(
      pred, extend(nxvNi1 ...), != splat(0))

-> nxvNi1 and(pred, ...)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119334

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-cmp-select.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-gather.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-masked-scatter.ll
  llvm/test/CodeGen/AArch64/sve-punpklo-combine.ll
  llvm/test/CodeGen/AArch64/sve-setcc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119334.407145.patch
Type: text/x-patch
Size: 15891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/04b661a6/attachment-0001.bin>


More information about the llvm-commits mailing list