Miscellaneous cleanups for VecUtils.h
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 14 Apr 2013 09:33:08 +0000 (09:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 14 Apr 2013 09:33:08 +0000 (09:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/VecUtils.h

index edebcb3e275e5adce356dac734b214d11feb1f40..03512bf8c34fb84f8401e22c84cfb8783639d997 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
-#define  LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
+#ifndef LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H
+#define LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H
 
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/ADT/SmallSet.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Analysis/AliasAnalysis.h"
 #include <vector>
 
-using namespace llvm;
-
 namespace llvm {
 
 class BasicBlock; class Instruction; class Type;
@@ -75,10 +72,10 @@ struct BoUpSLP  {
   void vectorizeArith(ValueList &Operands);
 
 private:
-  /// \returns This method contains the recursive part of getTreeCost.
+  /// \brief This method contains the recursive part of getTreeCost.
   int getTreeCost_rec(ValueList &VL, unsigned Depth);
 
-  /// \returns This recursive method looks for vectorization hazards such as
+  /// \brief This recursive method looks for vectorization hazards such as
   /// values that are used by multiple users and checks that values are used
   /// by only one vector lane. It updates the variables LaneMap, MultiUserVals.
   void getTreeUses_rec(ValueList &VL, unsigned Depth);
@@ -132,7 +129,7 @@ private:
   std::map<Value*, int> LaneMap;
   // A list of instructions to ignore while sinking
   // memory instructions. This map must be reset between runs of getCost.
-  SmallSet<Value*, 8> MemBarrierIgnoreList;
+  SmallPtrSet<Value *, 8> MemBarrierIgnoreList;
 
   // -- containers that are used during vectorizeTree -- //
   // Maps between the first scalar to the vector. This map must be reset between
@@ -148,5 +145,5 @@ private:
 };
 
 } // end of namespace
-# endif  //LLVM_TRANSFORMS_VECTORIZE_AOSVECTORIZER_H
 
+#endif // LLVM_TRANSFORMS_VECTORIZE_VECUTILS_H