Skip to content

Commit 1f580be

Browse files
committed
EscapeAnalysis add an early check to avoid a little work.
Noticed by code inspection during debugging. This avoids some work but is probably NFC.
1 parent 9495af6 commit 1f580be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Analysis/EscapeAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ bool EscapeAnalysis::ConnectionGraph::mergeFrom(ConnectionGraph *SourceGraph,
10221022
// Just set global escaping in the caller node and that's it.
10231023
Changed |= DestNd->mergeEscapeState(EscapeState::Global);
10241024
// If DestNd is an interior node, its content still needs to be created.
1025-
if (!DestNd->isInterior())
1025+
if (!DestNd->isInterior() || DestNd->pointsTo)
10261026
continue;
10271027
}
10281028

0 commit comments

Comments
 (0)