HomePhabricator

[ARM] Add patterns for select(p, BinOp(x, y), z) -> BinOpT(x, y,p z)

Authored by dmgreen on Wed, Jul 22, 5:24 AM.

Description

[ARM] Add patterns for select(p, BinOp(x, y), z) -> BinOpT(x, y,p z)

Most MVE instructions can be predicated to fold a select into the
instruction, using the predicate and the selects else as a passthough.
This adds tablegen patterns for most two operand instructions using the
newly added TwoOpPattern from 1030e82598da.

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