Skip to content

Commit 2af993a

Browse files
author
Mikhail Gudim
committed
format
1 parent 72ab680 commit 2af993a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,10 +2247,9 @@ class BoUpSLP {
22472247
/// Return true if an array of scalar loads can be replaced with a strided
22482248
/// load (with constant stride).
22492249
///
2250-
/// It is possible that the load gets "widened". Suppose that originally each load loads `k` bytes and `PointerOps` can be arranged as follows (`%s` is constant):
2251-
/// %b + 0 * %s + 0
2252-
/// %b + 0 * %s + 1
2253-
/// %b + 0 * %s + 2
2250+
/// It is possible that the load gets "widened". Suppose that originally each
2251+
/// load loads `k` bytes and `PointerOps` can be arranged as follows (`%s` is
2252+
/// constant): %b + 0 * %s + 0 %b + 0 * %s + 1 %b + 0 * %s + 2
22542253
/// ...
22552254
/// %b + 0 * %s + (w - 1)
22562255
///
@@ -2272,17 +2271,18 @@ class BoUpSLP {
22722271
/// \param PointerOps list of pointer arguments of loads.
22732272
/// \param ElemTy original scalar type of loads.
22742273
/// \param Alignment alignment of the first load.
2275-
/// \param SortedIndices is the order of PointerOps as returned by `sortPtrAccesses`
2276-
/// \param Diff Pointer difference between the lowest and the highes pointer in `PointerOps` as returned by `getPointersDiff`.
2274+
/// \param SortedIndices is the order of PointerOps as returned by
2275+
/// `sortPtrAccesses`
2276+
/// \param Diff Pointer difference between the lowest and the highes pointer
2277+
/// in `PointerOps` as returned by `getPointersDiff`.
22772278
/// \param Ptr0 first pointer in `PointersOps`.
22782279
/// \param PtrN last pointer in `PointersOps`.
22792280
/// \param SPtrInfo If the function return `true`, it also sets all the fields
22802281
/// of `SPtrInfo` necessary to generate the strided load later.
2281-
bool analyzeConstantStrideCandidate(const ArrayRef<Value *> PointerOps,
2282-
Type *ElemTy, Align Alignment,
2283-
const SmallVectorImpl<unsigned> &SortedIndices,
2284-
const int64_t Diff, Value *Ptr0, Value *PtrN,
2285-
StridedPtrInfo &SPtrInfo) const;
2282+
bool analyzeConstantStrideCandidate(
2283+
const ArrayRef<Value *> PointerOps, Type *ElemTy, Align Alignment,
2284+
const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff,
2285+
Value *Ptr0, Value *PtrN, StridedPtrInfo &SPtrInfo) const;
22862286

22872287
/// Return true if an array of scalar loads can be replaced with a strided
22882288
/// load (with run-time stride).
@@ -6915,8 +6915,8 @@ bool BoUpSLP::isStridedLoad(ArrayRef<Value *> PointerOps, Type *ScalarTy,
69156915

69166916
bool BoUpSLP::analyzeConstantStrideCandidate(
69176917
const ArrayRef<Value *> PointerOps, Type *ElemTy, Align CommonAlignment,
6918-
const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff, Value *Ptr0,
6919-
Value *PtrN, StridedPtrInfo &SPtrInfo) const {
6918+
const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff,
6919+
Value *Ptr0, Value *PtrN, StridedPtrInfo &SPtrInfo) const {
69206920
const unsigned Sz = PointerOps.size();
69216921
SmallVector<int64_t> SortedOffsetsFromBase(Sz);
69226922
// Go through `PointerOps` in sorted order and record offsets from `Ptr0`.

0 commit comments

Comments
 (0)