This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Remove AArch64ISD::NEG
ClosedPublic

Authored by dmgreen on Jun 4 2021, 9:19 AM.

Details

Summary

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.

Diff Detail

Event Timeline

dmgreen created this revision.Jun 4 2021, 9:19 AM
dmgreen requested review of this revision.Jun 4 2021, 9:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 9:19 AM
This revision is now accepted and ready to land.Jun 4 2021, 12:07 PM
This revision was automatically updated to reflect the committed changes.