[llvm] r274182 - [LV] Improve accuracy and formatting of function comment

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 15:04:10 PDT 2016


Author: anemet
Date: Wed Jun 29 17:04:10 2016
New Revision: 274182

URL: http://llvm.org/viewvc/llvm-project?rev=274182&view=rev
Log:
[LV] Improve accuracy and formatting of function comment

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=274182&r1=274181&r2=274182&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Wed Jun 29 17:04:10 2016
@@ -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)




More information about the llvm-commits mailing list