[PATCH] D103703: [AArch64] Remove AArch64ISD::NEG

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 09:19:37 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: efriedma, david-arm, sdesmalen, NickGuy, t.p.northover.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This NEG node is just a vector negation, easily represented as a SUB zero. Removing it from the one place it is generated is essentially an NFC, but can allow some extra folding. The updated tests are now loading different constant literals, which have already been negated.


https://reviews.llvm.org/D103703

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/srem-seteq-vec-nonsplat.ll
  llvm/test/CodeGen/AArch64/urem-seteq-illegal-types.ll
  llvm/test/CodeGen/AArch64/urem-seteq-vec-nonsplat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103703.349885.patch
Type: text/x-patch
Size: 30447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/06c91ae9/attachment.bin>


More information about the llvm-commits mailing list