File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
lib/SILOptimizer/Analysis Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -1729,33 +1729,9 @@ class PartitionOpTranslator {
1729
1729
}
1730
1730
}
1731
1731
1732
- ValueIsolationRegionInfo actorIsolation;
1733
- for (auto &op : pai->getAllOperands ()) {
1734
- if (auto value = tryToTrackValue (op.get ())) {
1735
- if (auto isolation = value->getValueState ().getIsolationRegionInfo ()) {
1736
- actorIsolation = actorIsolation.merge (isolation);
1737
- }
1738
- } else {
1739
- // We only treat Sendable values as propagating actor self if the
1740
- // partial apply has operand as an sil_isolated parameter.
1741
- ApplySite applySite (pai);
1742
- if (applySite.isArgumentOperand (op) &&
1743
- ApplySite (pai).getArgumentParameterInfo (op).hasOption (
1744
- SILParameterInfo::Isolated)) {
1745
- if (auto isolation =
1746
- value->getValueState ().getIsolationRegionInfo ()) {
1747
- actorIsolation = actorIsolation.merge (isolation);
1748
- }
1749
- }
1750
- }
1751
- }
1752
-
1753
- if (actorIsolation.isDisconnected ())
1754
- actorIsolation = ValueIsolationRegionInfo ();
1755
1732
SmallVector<SILValue, 8 > applyResults;
1756
1733
getApplyResults (pai, applyResults);
1757
- translateSILMultiAssign (applyResults, pai->getOperandValues (),
1758
- actorIsolation);
1734
+ translateSILMultiAssign (applyResults, pai->getOperandValues ());
1759
1735
}
1760
1736
1761
1737
void translateSILBuiltin (BuiltinInst *bi) {
You can’t perform that action at this time.
0 commit comments