[all-commits] [llvm/llvm-project] eac263: [AArch64][SVE] Fold away SETCC if original input w...
sdesmalen-arm via All-commits
all-commits at lists.llvm.org
Mon Feb 28 06:14:12 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eac2638ec169a5d6987ac4fbbcd430bee4489348
https://github.com/llvm/llvm-project/commit/eac2638ec169a5d6987ac4fbbcd430bee4489348
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2022-02-28 (Mon, 28 Feb 2022)
Changed paths:
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
M llvm/test/CodeGen/AArch64/sve-cmp-select.ll
M llvm/test/CodeGen/AArch64/sve-fixed-length-masked-gather.ll
M llvm/test/CodeGen/AArch64/sve-fixed-length-masked-scatter.ll
M llvm/test/CodeGen/AArch64/sve-punpklo-combine.ll
M llvm/test/CodeGen/AArch64/sve-setcc.ll
Log Message:
-----------
[AArch64][SVE] Fold away SETCC if original input was predicate vector.
This adds the following two folds:
Fold 1:
setcc_merge_zero(
all_active, extend(nxvNi1 ...), != splat(0))
-> nxvNi1 ...
Fold 2:
setcc_merge_zero(
pred, extend(nxvNi1 ...), != splat(0))
-> nxvNi1 and(pred, ...)
Reviewed By: david-arm
Differential Revision: https://reviews.llvm.org/D119334
More information about the All-commits
mailing list