Skip to content

Commit d54b040

Browse files
committed
remove julia fix
1 parent 7a4b70f commit d54b040

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5258,16 +5258,6 @@ 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
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())
5266-
return {
5267-
Type::getIntNTy(*C, P.size() * 8),
5268-
isIntegerWideningViable(P, Type::getIntNTy(*C, P.size() * 8), DL),
5269-
nullptr};
5270-
52715261
// Fallback to TypePartitionTy and we probably won't promote.
52725262
return {TypePartitionTy, false, nullptr};
52735263
}

0 commit comments

Comments
 (0)