Adds -prefer-inloop-reductions to the RUN line of sve-tail-folding.ll & adds
a new test where in-loop reductions cannot be used (@cond_xor_reduction). NFC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM!
llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding.ll | ||
---|---|---|
658 | nit: I think you'll need to rebase the patch before merging because we now use the get.active.lane.mask intrinsic to generate the loop predicate. | |
680 | I think the reason why we don't use in-loop reductions here is because it's a conditional reduction, right? | |
682 | nit: I think you can just delete everything from this line onwards because we'll never reach the scalar tail anyway. |
nit: I think you'll need to rebase the patch before merging because we now use the get.active.lane.mask intrinsic to generate the loop predicate.