[PATCH] D132206: [DAGCombiner] Fold vecreduce_xor/or/and(splat_vector(val)) to constant
WangLian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 00:25:03 PDT 2022
Jimerlife added a comment.
In D132206#3734342 <https://reviews.llvm.org/D132206#3734342>, @dmgreen wrote:
> XOR will be 0 or val depending on if there are an even number of vector elements.
>
> Can you add some tests for both cases?
You are right, should consider element count. Thank you.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132206/new/
https://reviews.llvm.org/D132206
More information about the llvm-commits
mailing list