[PATCH] D109850: Implement SystemZIselLowering::hasAndNot

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 15 13:36:22 PDT 2021


MatzeB created this revision.
MatzeB added reviewers: jnspaulsson, uweigand, neumannh.
Herald added subscribers: wenlei, hiraditya, mcrosier.
MatzeB requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- SystemZ appears to have the `vnc` instruction producing an "and-not" effect. Therefore `SystemZIselLowering::hasAndNot` can return true.
- This led to different patterns generated for `abs` which are added here as well.

This change improves SystemZ codegen and will avoid code generation regressions with https://reviews.llvm.org/D109194


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109850

Files:
  llvm/lib/Target/SystemZ/SystemZISelLowering.h
  llvm/lib/Target/SystemZ/SystemZInstrVector.td
  llvm/test/CodeGen/SystemZ/vec-abs-01.ll
  llvm/test/CodeGen/SystemZ/vec-masked-merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109850.372788.patch
Type: text/x-patch
Size: 8597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210915/64f6dedd/attachment.bin>


More information about the llvm-commits mailing list