Skip to content

Commit 8075010

Browse files
committed
DefiniteInitialization: remove the limit of 64k aggregate elements.
I didn't add a test, because there is a performance problem in PredictableMemoryAccessOptimizations. Until this is fixed, the test would take too long. rdar://71040556
1 parent 7d44f6a commit 8075010

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/SILOptimizer/Mandatory/DIMemoryUseCollector.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,10 @@ struct DIMemoryUse {
298298

299299
/// For memory objects of (potentially recursive) tuple type, this keeps
300300
/// track of which tuple elements are affected.
301-
unsigned short FirstElement, NumElements;
301+
unsigned FirstElement, NumElements;
302302

303303
DIMemoryUse(SILInstruction *Inst, DIUseKind Kind, unsigned FE, unsigned NE)
304304
: Inst(Inst), Kind(Kind), FirstElement(FE), NumElements(NE) {
305-
assert(FE == FirstElement && NumElements == NE &&
306-
"more than 64K elements not supported yet");
307305
}
308306

309307
DIMemoryUse() : Inst(nullptr) {}

0 commit comments

Comments
 (0)