[PATCH] D149993: [SLP][NFC] Cleanup: Separate vectorization of Inserts and CmpInsts.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 09:24:54 PDT 2023
ABataev added inline comments.
================
Comment at: llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h:148
/// Tries to vectorize \p CmpInts. \Returns true on success.
- bool vectorizeCmpInsts(ArrayRef<CmpInst *> CmpInsts, BasicBlock *BB,
+ template <typename RangeT>
+ bool vectorizeCmpInsts(RangeT CmpInsts, BasicBlock *BB,
----------------
Why need a template here since looks like it accepts only ArrayRef?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149993/new/
https://reviews.llvm.org/D149993
More information about the llvm-commits
mailing list