[MVE] Fold fadd(select(..., +0.0)) into a predicated fadd
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 8 Jun 2022 08:25:00 +0000 (09:25 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 10 Jun 2022 10:09:55 +0000 (11:09 +0100)
commit007917b95ce2b569a8e5e90cd9b819676a6bb364
tree542baaafb343a20a01a4f7367554a95c2ec59505
parent1972d1e86a62dd9a8c39f82d1dc3b5d0a75d2422
[MVE] Fold fadd(select(..., +0.0)) into a predicated fadd

We already have patterns for matching fadd(select(..., -0.0)),
but an upcoming patch will lead to patterns using +0.0 as the
identity instead of -0.0. I'm adding support for these patterns
now to avoid any regressions for MVE.

Differential Revision: https://reviews.llvm.org/D127275
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/mve-pred-selectop3.ll