[AArch64][SVE] Add a commutative VSelectCommPredOrPassthruPatFrags
authorDavid Green <david.green@arm.com>
Wed, 7 Jun 2023 12:18:16 +0000 (13:18 +0100)
committerDavid Green <david.green@arm.com>
Wed, 7 Jun 2023 12:18:16 +0000 (13:18 +0100)
commitbeb3a9a5e65a7000299eedd5587cdb6bd47cdac3
tree848a20ab177c65814a98de1274be40234e3a8668
parentcda46cc4f921f6b288c57a68b901ec2f57134606
[AArch64][SVE] Add a commutative VSelectCommPredOrPassthruPatFrags

This adds a commutative version of VSelectPredOrPassthruPatFrags (renamed from
EitherVSelectOrPassthruPatFrags) that checks both variants for commutative
operations like min/max. I have not attempted to handle fp operation that
require fast-math flags.

Differential Revision: https://reviews.llvm.org/D151084
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-min-max-pred.ll