Skip to content

Commit a9dc4ed

Browse files
committed
[region-isolation] Refactor out the Region analysis from TransferNonSendable.
NFCI. This is just a pure refactor of the analysis part of TransferNonSendable into a separate SIL level analysis so it can be reused by other passes. The reason that I am committing this earlier is that I am working concurrently on other patches that change TransferNonSendable itself and I want to avoid issues when rebasing those patches. Getting this patch into tree earlier avoids that. This is in preparation for adding a new flow sensitive initialization pass that combines region based analysis with the current flow sensitive isolation's diagnostic emitter. The idea is that we want to preserve the diagnostics from that pass rather than try to make our own as an initial step.
1 parent 02094d1 commit a9dc4ed

File tree

5 files changed

+3568
-3076
lines changed

5 files changed

+3568
-3076
lines changed

include/swift/SILOptimizer/Analysis/Analysis.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ SIL_ANALYSIS(RCIdentity)
4646
SIL_ANALYSIS(TypeExpansion)
4747
SIL_ANALYSIS(PassManagerVerifier)
4848
SIL_ANALYSIS(DeadEndBlocks)
49+
SIL_ANALYSIS(Region)
4950

5051
#undef SIL_ANALYSIS

0 commit comments

Comments
 (0)