]> granicus.if.org Git - llvm/commitdiff
[LV] Improve accuracy and formatting of function comment
authorAdam Nemet <anemet@apple.com>
Wed, 29 Jun 2016 22:04:10 +0000 (22:04 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 29 Jun 2016 22:04:10 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274182 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index fb0243542fca46e5ef763ebb012716caa845c39d..2e55c4fc75e89467052f63b9fe8a00546f835b21 100644 (file)
@@ -1153,9 +1153,10 @@ public:
   unsigned getWidth() const { return Width.Value; }
   unsigned getInterleave() const { return Interleave.Value; }
   enum ForceKind getForce() const { return (ForceKind)Force.Value; }
+
+  /// \brief If hints are provided that force vectorization, use the AlwaysPrint
+  /// pass name to force the frontend to print the diagnostic.
   const char *vectorizeAnalysisPassName() const {
-    // If hints are provided that don't disable vectorization use the
-    // AlwaysPrint pass name to force the frontend to print the diagnostic.
     if (getWidth() == 1)
       return LV_NAME;
     if (getForce() == LoopVectorizeHints::FK_Disabled)