Add a clarify comment for meaning of SafePointes [NFC]
authorPhilip Reames <listmail@philipreames.com>
Mon, 26 Aug 2019 20:48:35 +0000 (20:48 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 26 Aug 2019 20:48:35 +0000 (20:48 +0000)
Extracted from D66688 as requested.

llvm-svn: 369962

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

index 3ac1234446ca8a8b7eb8fa2321ce25b82d8b1b1d..7ea842baa5e1d3edde36a5b3baa00d064a55c8a1 100644 (file)
@@ -924,7 +924,11 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
 
   assert(TheLoop->getNumBlocks() > 1 && "Single block loops are vectorizable");
 
-  // A list of pointers that we can safely read and write to.
+  // A list of pointers which are known to be dereferenceable within scope of
+  // the loop body for each iteration of the loop which executes.  That is,
+  // the memory pointed to can be dereferenced (with the access size implied by
+  // the value's type) unconditionally within the loop header without
+  // introducing a new fault.
   SmallPtrSet<Value *, 8> SafePointes;
 
   // Collect safe addresses.