[ARM] Enable shouldFoldSelectWithIdentityConstant for MVE
authorDavid Green <david.green@arm.com>
Fri, 28 Apr 2023 13:57:51 +0000 (14:57 +0100)
committerDavid Green <david.green@arm.com>
Fri, 28 Apr 2023 13:57:51 +0000 (14:57 +0100)
commitd321f3aa64b4eaedd790dafe974cfdc0517cb22b
tree0eff7be5ad0a9f0055813150142834182b104457
parent56af0e913ce7ec29690cc7295d75fc5573153bbf
[ARM] Enable shouldFoldSelectWithIdentityConstant for MVE

We already have tablegen patterns for a lot of these, but performing the
combine earlier in DAG can help in a few extra cases.

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