-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't add an unwind edge if the call/drop/assert is in a cleanup block. This allows the pass to inline more functions correctly. Don't penalize intrinsics as harshly. They were previously treated the same as regular calls but now have the same cost as a statement. Run the before/after hooks for the pass. Since this is a MirMapPass, the hooks weren't run. Run copy propagation each time a function is inlined to remove any unecessary copies introduced during integration. This also makes copy propagation remove any nops it generated once it has finished. Run simplify cfg after inlining has finished for a SCC. This removes the need for a separate simplify cfg pass to be run.
- Loading branch information
Showing
5 changed files
with
105 additions
and
55 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
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