[all-commits] [llvm/llvm-project] 12f53e: [AArch64] Remove AArch64ISD::NEG

David Green via All-commits all-commits at lists.llvm.org
Sat Jun 5 11:55:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12f53e5392d699dbba564de3f2dff4802680f261
      https://github.com/llvm/llvm-project/commit/12f53e5392d699dbba564de3f2dff4802680f261
  Author: David Green <david.green at arm.com>
  Date:   2021-06-05 (Sat, 05 Jun 2021)

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

  Log Message:
  -----------
  [AArch64] Remove AArch64ISD::NEG

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.

Differential Revision: https://reviews.llvm.org/D103703




More information about the All-commits mailing list