Skip to content

Commit 4e28d30

Browse files
authored
LV/Legality: update outdated comment for isInvariant (NFC) (#100366)
1 parent e1a3aa8 commit 4e28d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ class LoopVectorizationLegality {
349349
/// loop. Do not use after invoking 'createVectorizedLoopSkeleton' (PR34965).
350350
int isConsecutivePtr(Type *AccessTy, Value *Ptr) const;
351351

352-
/// Returns true if value V is uniform across \p VF lanes, when \p VF is
353-
/// provided, and otherwise if \p V is invariant across all loop iterations.
352+
/// Returns true if \p V is invariant across all loop iterations according to
353+
/// SCEV.
354354
bool isInvariant(Value *V) const;
355355

356356
/// Returns true if value V is uniform across \p VF lanes, when \p VF is

0 commit comments

Comments
 (0)