[SVE] Restrict cmp+and->pred_cmp isel to instances where the and is the sole user...
authorPaul Walker <paul.walker@arm.com>
Thu, 2 Mar 2023 13:23:53 +0000 (13:23 +0000)
committerPaul Walker <paul.walker@arm.com>
Mon, 13 Mar 2023 12:42:00 +0000 (12:42 +0000)
commit3870857226b68fe19e97969e256e31c5eb681c04
tree1986430c22a6e2a7ba10e228db5fb54e5037b8bb
parent58825d2cf947d0b4fb6590c17212c388cd3ff5cf
[SVE] Restrict cmp+and->pred_cmp isel to instances where the and is the sole user of the compare.

Without the single use restriction we may replace the and with a
more costly duplicated compare.

Differential Revision: https://reviews.llvm.org/D145755
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-fcmp.ll
llvm/test/CodeGen/AArch64/sve-fp-int-min-max.ll
llvm/test/CodeGen/AArch64/sve-intrinsics-int-compares.ll