-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't generate goto's for dropping immediates
When "dropping" an immediate value such as an Int, we no longer generate an explicit goto to connect the current and next basic block. By doing so, the clean up pass simply removes the entire block if no other instructions are in the block, preventing us from generating many basic blocks that simply contain a goto to the next block. While this doesn't really affect performance, it makes the LLVM IR smaller and makes it easier to visualize the MIR IR. Changelog: fixed
- Loading branch information
1 parent
4f87499
commit 2f320e5
Showing
2 changed files
with
11 additions
and
12 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