Skip to content

Commit c894b79

Browse files
committed
Minor updates per review.
1 parent d032d98 commit c894b79

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,10 +3110,9 @@ class BoUpSLP {
31103110
SmallVectorImpl<SmallVector<const TreeEntry *>> &Entries,
31113111
unsigned NumParts, bool ForOrder = false);
31123112

3113-
/// \returns the scalarization cost for this list of values. Assuming that
3114-
/// this subtree gets vectorized, we may need to insert the values from the
3115-
/// roots. This method calculates the cost of inserting the values.
3116-
/// \param ForPoisonSrc true if initial vector is poison, false otherwise.
3113+
/// \returns the cost of gathering (inserting) the values in \p VL into a
3114+
/// vector. \param ForPoisonSrc true if initial vector is poison, false
3115+
/// otherwise.
31173116
InstructionCost getGatherCost(ArrayRef<Value *> VL, bool ForPoisonSrc,
31183117
Type *ScalarTy) const;
31193118

llvm/test/Transforms/SLPVectorizer/SystemZ/vec-elt-insertion.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ define void @fun0(ptr nocapture %0, double %1) {
2727

2828
; This function needs the element-load to be recognized in SystemZ
2929
; getVectorInstrCost().
30-
define void @fun1(double %0) local_unnamed_addr {
30+
define void @fun1(double %0) {
3131
; CHECK-LABEL: define void @fun1(
3232
; CHECK: fsub <2 x double>
3333
; CHECK: fsub <2 x double>

0 commit comments

Comments
 (0)