Skip to content

Commit cf3b555

Browse files
committedAug 26, 2019
Add a clarify comment for meaning of SafePointes [NFC]
Extracted from D66688 as requested. llvm-svn: 369962
1 parent 57effbd commit cf3b555

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,11 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
924924

925925
assert(TheLoop->getNumBlocks() > 1 && "Single block loops are vectorizable");
926926

927-
// A list of pointers that we can safely read and write to.
927+
// A list of pointers which are known to be dereferenceable within scope of
928+
// the loop body for each iteration of the loop which executes. That is,
929+
// the memory pointed to can be dereferenced (with the access size implied by
930+
// the value's type) unconditionally within the loop header without
931+
// introducing a new fault.
928932
SmallPtrSet<Value *, 8> SafePointes;
929933

930934
// Collect safe addresses.

0 commit comments

Comments
 (0)