From: Benjamin Kramer Date: Sun, 14 Apr 2013 09:33:08 +0000 (+0000) Subject: Miscellaneous cleanups for VecUtils.h X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d62ea86e5603ecd3624188aaae9e80d9f2286fe;p=platform%2Fupstream%2Fllvm.git Miscellaneous cleanups for VecUtils.h llvm-svn: 179483 --- diff --git a/llvm/lib/Transforms/Vectorize/VecUtils.h b/llvm/lib/Transforms/Vectorize/VecUtils.h index edebcb3..03512bf 100644 --- a/llvm/lib/Transforms/Vectorize/VecUtils.h +++ b/llvm/lib/Transforms/Vectorize/VecUtils.h @@ -12,18 +12,15 @@ // //===----------------------------------------------------------------------===// -#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 -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 LaneMap; // A list of instructions to ignore while sinking // memory instructions. This map must be reset between runs of getCost. - SmallSet MemBarrierIgnoreList; + SmallPtrSet 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