Skip to content

Commit 2f94f0d

Browse files
committed
comment
1 parent b212468 commit 2f94f0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5199,7 +5199,11 @@ AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS,
51995199
// Try to compute a friendly type for this partition of the alloca. This
52005200
// won't always succeed, in which case we fall back to a legal integer type
52015201
// or an i8 array of an appropriate size.
5202-
// Returns a tuple: <PartitionType, IsIntegerWideningViable (true if integer widening promotion is used), VectorType (if vector promotion is used, otherwise nullptr)>.
5202+
//
5203+
// Returns a tuple with the following elements:
5204+
// - PartitionType: The computed type for this partition.
5205+
// - IsIntegerWideningViable: True if integer widening promotion is used.
5206+
// - VectorType: The vector type if vector promotion is used, otherwise nullptr.
52035207
auto SelectPartitionTy = [&]() -> std::tuple<Type *, bool, VectorType *> {
52045208
// First check if the partition is viable for vetor promotion.
52055209
//

0 commit comments

Comments
 (0)