mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is a verification routine that is only invoked in PassManager destructors. I am going to use this to ensure that the PassManagerVerifierAnalysis only runs at such points (even when sil-verify-all is enabled) since it is too expensive to run otherwise. NOTE: The default implementation of verifyFull in this commit is a no-op. I wanted to have verify() be the default implementation of verifyFull(), but I do not have more time to invest in this and it seems to catch /real/ bugs, albeit bugs unrelated to pass manager notification verification. Instead I am going to file an SR for someone to look at it since I need to move on from this work back to semantic SIL. At least we will not have notification failure issues anymore and thus a large correctness issue in the compiler has been fixed. Forward progress! rdar://42301529
11 KiB
11 KiB