diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h b/contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h index 2dca69742a..e1460d75cf 100644 --- a/contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/contrib/libs/llvm12/include/llvm/Analysis/LoopAccessAnalysis.h @@ -178,8 +178,8 @@ public: MemoryDepChecker(PredicatedScalarEvolution &PSE, const Loop *L) : PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeDepDistBytes(0), - MaxSafeVectorWidthInBits(-1U), - FoundNonConstantDistanceDependence(false), + MaxSafeVectorWidthInBits(-1U), + FoundNonConstantDistanceDependence(false), Status(VectorizationSafetyStatus::Safe), RecordDependences(true) {} /// Register the location (instructions are given increasing numbers) @@ -212,21 +212,21 @@ public: return Status == VectorizationSafetyStatus::Safe; } - /// Return true if the number of elements that are safe to operate on - /// simultaneously is not bounded. - bool isSafeForAnyVectorWidth() const { - return MaxSafeVectorWidthInBits == UINT_MAX; - } - + /// Return true if the number of elements that are safe to operate on + /// simultaneously is not bounded. + bool isSafeForAnyVectorWidth() const { + return MaxSafeVectorWidthInBits == UINT_MAX; + } + /// The maximum number of bytes of a vector register we can vectorize /// the accesses safely with. uint64_t getMaxSafeDepDistBytes() { return MaxSafeDepDistBytes; } /// Return the number of elements that are safe to operate on /// simultaneously, multiplied by the size of the element in bits. - uint64_t getMaxSafeVectorWidthInBits() const { - return MaxSafeVectorWidthInBits; - } + uint64_t getMaxSafeVectorWidthInBits() const { + return MaxSafeVectorWidthInBits; + } /// In same cases when the dependency check fails we can still /// vectorize the loop with a dynamic array access check. @@ -291,7 +291,7 @@ private: /// operate on simultaneously, multiplied by the size of the element in bits. /// The size of the element is taken from the memory access that is most /// restrictive. - uint64_t MaxSafeVectorWidthInBits; + uint64_t MaxSafeVectorWidthInBits; /// If we see a non-constant dependence distance we can still try to /// vectorize this loop with runtime checks. @@ -434,7 +434,7 @@ public: bool UseDependencies); /// Returns the checks that generateChecks created. - const SmallVectorImpl<RuntimePointerCheck> &getChecks() const { + const SmallVectorImpl<RuntimePointerCheck> &getChecks() const { return Checks; } |