-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mono][aot] Add a pass to remove empty finally clauses. (#53482)
This can remove the try-finally added for list iterators, i.e.: var l = new List<int> (); foreach (var i in l) { } Where the finally clause is: IL_0040: ldloca.s V_3 IL_0042: constrained. [System.Collections]System.Collections.Generic.List`1/Enumerator<int32> IL_0048: callvirt instance void [System.Runtime]System.IDisposable::Dispose() IL_004d: endfinally and the Dispose method for List`1/Enumerator is empty.
- Loading branch information
Showing
4 changed files
with
120 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters