Skip to content

Commit 874e50b

Browse files
committed
format
1 parent 8dfec91 commit 874e50b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5201,10 +5201,13 @@ AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS,
52015201
// or an i8 array of an appropriate size.
52025202
auto SelectPartitionTy = [&]() -> std::tuple<Type *, bool, VectorType *> {
52035203
// First check if the partition is viable for vetor promotion.
5204+
//
52045205
// We prefer vector promotion over integer widening promotion when:
52055206
// - The vector element type is a floating-point type.
52065207
// - All the loads/stores to the alloca are vector loads/stores to the
5207-
// entire alloca. Otherwise when there is a integer vector with mixed
5208+
// entire alloca.
5209+
//
5210+
// Otherwise when there is a integer vector with mixed
52085211
// loads/stores we prefer integer widening promotion because it's more
52095212
// likely the user is doing bitwise arithmetic and we generate better code.
52105213
VectorType *VecTy =

0 commit comments

Comments
 (0)