Skip to content

Commit e8c62ee

Browse files
committed
Fix comments
1 parent 8b62688 commit e8c62ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ enum class TailFoldingStyle {
202202
enum class RTCheckStyle {
203203
/// Branch to scalar loop if checks fails at runtime.
204204
ScalarFallback,
205-
/// Form a mask based on elements which won't be a WAR or RAW hazard
205+
/// Form a mask based on elements which won't be a WAR or RAW hazard.
206206
UseSafeEltsMask,
207207
};
208208

llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class LoopVectorizationPlanner {
441441
/// Build VPlans for the specified \p UserVF and \p UserIC if they are
442442
/// non-zero or all applicable candidate VFs otherwise. If vectorization and
443443
/// interleaving should be avoided up-front, no plans are generated.
444-
/// RTChecks is a list of pointer pairs that should be checked for aliasing,
444+
/// DiffChecks is a list of pointer pairs that should be checked for aliasing,
445445
/// setting HasAliasMask to true in the case that an alias mask is generated
446446
/// and the vector loop should be entered even if the pointers alias across a
447447
/// loop iteration.

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,14 +2889,14 @@ struct VPWidenStoreEVLRecipe final : public VPWidenMemoryRecipe {
28892889
}
28902890
};
28912891

2892-
// Given a pointer A that is being stored to, and pointer B that is being
2893-
// read from, both with unknown lengths, create a mask that disables
2892+
// Given a pointer A that is being laoded from, and pointer B that is being
2893+
// stored to, both with unknown lengths, create a mask that disables
28942894
// elements which could overlap across a loop iteration. For example, if A
2895-
// is X and B is X + 2 with VF being 4, only the final two elements of the
2895+
// is X and B is X + 2 with VF being 4, only the first two elements of the
28962896
// loaded vector can be stored since they don't overlap with the stored
2897-
// vector. %b.vec = load %b ; = [s, t, u, v]
2897+
// vector. %a.vec = load %a ; = [s, t, u, v]
28982898
// [...]
2899-
// store %a, %b.vec ; only u and v can be stored as their addresses don't
2899+
// store %b, %a.vec ; only s and t can be stored as their addresses don't
29002900
// overlap with %a + (VF - 1)
29012901
class VPAliasLaneMaskRecipe : public VPSingleDefRecipe {
29022902

0 commit comments

Comments
 (0)