Skip to content

Commit fc73f7d

Browse files
committed
Address comments
Created using spr 1.3.5
1 parent 34e7be5 commit fc73f7d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,11 @@ class LoopVectorizationCostModel {
14581458
return getTailFoldingStyle() != TailFoldingStyle::None;
14591459
}
14601460

1461-
/// Return maximum safe number of elements to be processed, which do not
1462-
/// prevent store-load forwarding and are safe with regard to the memory
1463-
/// dependencies. Required for EVL-based VPlans to correctly calculate AVL
1464-
/// (application vector length) as min(remaining AVL, MaxSafeElements).
1461+
/// Return maximum safe number of elements to be processed per vector
1462+
/// iteration, which do not prevent store-load forwarding and are safe with
1463+
/// regard to the memory dependencies. Required for EVL-based VPlans to
1464+
/// correctly calculate AVL (application vector length) as min(remaining AVL,
1465+
/// MaxSafeElements).
14651466
/// TODO: need to consider adjusting cost model to use this value as a
14661467
/// vectorization factor for EVL-based vectorization.
14671468
std::optional<unsigned> getMaxSafeElements() const { return MaxSafeElements; }

0 commit comments

Comments
 (0)