diff options
| author | Philip Reames <listmail@philipreames.com> | 2019-08-26 20:48:35 +0000 | 
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2019-08-26 20:48:35 +0000 | 
| commit | cf3b5559739576cd77034b1a86e3178b318b10ae (patch) | |
| tree | 6b18ca01cdbfeef0d9a36b65e28b140851bcdace /llvm | |
| parent | 57effbdadc0b382db4ef86addcfd03a64c9eda0a (diff) | |
| download | bcm5719-llvm-cf3b5559739576cd77034b1a86e3178b318b10ae.tar.gz bcm5719-llvm-cf3b5559739576cd77034b1a86e3178b318b10ae.zip  | |
Add a clarify comment for meaning of SafePointes [NFC]
Extracted from D66688 as requested.
llvm-svn: 369962
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp index 3ac1234446c..7ea842baa5e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp @@ -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.  | 

