HomePhabricator

[AArch64] Remove AArch64ISD::NEG

Authored by dmgreen on Jun 5 2021, 11:54 AM.

Description

[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

Details

Committed
dmgreenJun 5 2021, 11:54 AM
Differential Revision
D103703: [AArch64] Remove AArch64ISD::NEG
Parents
rGbe51737f5987: Fix "not all control paths return a value" MSVC warning. NFCI.
Branches
Unknown
Tags
Unknown