Skip to content

Commit aa1c976

Browse files
committed
Add TuplePackExtractInst to hasSameRepresentation
To allow it to forward guaranteed values.
1 parent fea1b97 commit aa1c976

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SIL/Utils/InstWrappers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ bool ForwardingOperation::hasSameRepresentation() const {
5454
case SILInstructionKind::SelectEnumInst:
5555
case SILInstructionKind::StructExtractInst:
5656
case SILInstructionKind::TupleExtractInst:
57+
case SILInstructionKind::TuplePackExtractInst:
5758
return true;
5859
}
5960
}
@@ -94,4 +95,4 @@ bool ForwardingOperation::visitForwardedValues(
9495
assert(args.size() == 1 && "Transforming terminator with multiple args?!");
9596
return visitor(args[0]);
9697
});
97-
}
98+
}

0 commit comments

Comments
 (0)