HomePhabricator

[AArch64] Remove SETCC of CSEL when the latter's condition can be inverted

Authored by bsmith on May 27 2021, 5:59 AM.

Description

[AArch64] Remove SETCC of CSEL when the latter's condition can be inverted

setcc (csel 0, 1, cond, X), 1, ne ==> csel 0, 1, !cond, X

Where X is a condition code setting instruction.

Co-authored-by: Paul Walker <paul.walker@arm.com>

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