Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Extend icmp bitcast to vecreduce fold to comparison with -1
D130163 added support for folding setcc (iN (bitcast (vNi1 X))), 0, (eq|ne) to setcc (iN (zext (i1 (vecreduce_or (vNi1 X))))), 0, (eq|ne). There is a conjugate fold for comparison with -1 which uses vecreduce_and and sext instead. Proof: https://alive2.llvm.org/ce/z/Zz--xy Differential Revision: https://reviews.llvm.org/D146518
- Loading branch information