Skip to content

Commit 6517a4d

Browse files
committed
format
1 parent 92fe65f commit 6517a4d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5258,10 +5258,11 @@ AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS,
52585258
isIntegerWideningViable(P, LargestIntTy, DL))
52595259
return {LargestIntTy, true, nullptr};
52605260

5261-
// If there are only intrinsic users of an aggregate type, try to represent as a legal integer
5262-
// type because we are probably just copying data around and the integer
5263-
// can be promoted.
5264-
if (OnlyIntrinsicUsers && DL.isLegalInteger(P.size() * 8) && TypePartitionTy->isAggregateType())
5261+
// If there are only intrinsic users of an aggregate type, try to
5262+
// represent as a legal integer type because we are probably just copying
5263+
// data around and the integer can be promoted.
5264+
if (OnlyIntrinsicUsers && DL.isLegalInteger(P.size() * 8) &&
5265+
TypePartitionTy->isAggregateType())
52655266
return {
52665267
Type::getIntNTy(*C, P.size() * 8),
52675268
isIntegerWideningViable(P, Type::getIntNTy(*C, P.size() * 8), DL),

0 commit comments

Comments
 (0)