Skip to content

Commit 1100bf9

Browse files
committed
SimplifyAllocStack: rename a variable and update a comment
NFC
1 parent 4d28cc6 commit 1100bf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SwiftCompilerSources/Sources/Optimizer/InstructionSimplification/SimplifyAllocStack.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ private extension AllocStackInst {
274274
// `alloc_stack $any P` -> `alloc_stack $ConcreteType`
275275
concreteType = cft
276276
} else {
277-
// The instruction which defines the existential archetype must dominate the alloc_stack, because
278-
// after the transformation the alloc_stack will use the existential archetype.
279-
for openArchetypeOp in initExistential.typeDependentOperands {
280-
if !openArchetypeOp.value.triviallyDominates(self) {
277+
// The instruction or argument which defines the archetype must dominate the alloc_stack
278+
// because after the transformation, the alloc_stack will use the archetype.
279+
for typeDependentOp in initExistential.typeDependentOperands {
280+
if !typeDependentOp.value.triviallyDominates(self) {
281281
return nil
282282
}
283283
}

0 commit comments

Comments
 (0)