Document the return value and fix a typo.
authorNadav Rotem <nrotem@apple.com>
Wed, 19 Jun 2013 05:47:33 +0000 (05:47 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 19 Jun 2013 05:47:33 +0000 (05:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/VecUtils.h

index e0d87f71d41e0dbdae9a08418362ee0a92d795ac..f76ae8413d719b0623422ae12fcd026407e0759e 100644 (file)
@@ -72,6 +72,7 @@ struct BoUpSLP  {
   bool vectorizeStores(ArrayRef<StoreInst *> Stores, int costThreshold);
 
   /// \brief Vectorize a group of scalars into a vector tree.
+  /// \returns the vectorized value. 
   Value *vectorizeArith(ArrayRef<Value *> Operands);
 
   /// \returns the list of new instructions that were added in order to collect
@@ -117,7 +118,7 @@ private:
   /// Only consider the first \p VF elements.
   int getFirstUserIndex(ArrayRef<Value *> VL, unsigned VF);
 
-  /// \returns the instruction \p I or \p Jhat appears last in the BB .
+  /// \returns the instruction \p I or \p J that appears last in the BB .
   int getLastIndex(Instruction *I, Instruction *J);
 
   /// \returns the insertion point for \p Index.