Skip to content

Commit ff1516c

Browse files
committed
Minor updates per review.
1 parent 30235bb commit ff1516c

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
@@ -3032,10 +3032,9 @@ class BoUpSLP {
30323032
SmallVectorImpl<SmallVector<const TreeEntry *>> &Entries,
30333033
unsigned NumParts, bool ForOrder = false);
30343034

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

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)