[LV] Improve accuracy and formatting of function comment

llvm-svn: 274182
This commit is contained in:
Adam Nemet 2016-06-29 22:04:10 +00:00
parent 5ba5270eb9
commit e1af3c635c
1 changed files with 3 additions and 2 deletions

View 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)