-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SIL] Extracted instruction methods from SILCombiner. #27042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SIL] Extracted instruction methods from SILCombiner. #27042
Conversation
@swift-ci please test |
@swift-ci please ASAN test |
Build failed |
3cbf676
to
06c7516
Compare
@swift-ci please test |
@swift-ci please ASAN test |
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please ASAN test |
06c7516
to
5ed3767
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
Build failed |
5620553
to
038df57
Compare
@swift-ci please test |
Build failed |
038df57
to
d00a497
Compare
SILCombiner has a number of conveniences for inserting, replacing, and removing instructions that involve modifying a worklist as part of their behavior. Here, that functionality is added to the SILInstructionWorklist; in a subsequent commit it will be removed from SILCombiner which will then call through to SILInstructionWorklist.
In the previous commit, various methods for adding, replacing, and removing instructions were duplicate from SILCombiner into SILInstructionWorklist. Here, SILCombiner is modified to call through to the methods which were added to SILInstructionWorklist.
Adjusted some variable names.
d00a497
to
0dce4da
Compare
@swift-ci please smoke test and merge |
@swift-ci please smoke test and merge |
SILCombiner
has a number of conveniences for inserting, replacing, and removing instructions that involve modifying a worklist as part of their behavior.The conveniences are added to
SILInstructionWorklist
in the first commit ("[SIL] Extracted instruction methods from SILCombiner.").In the second commit ("[SILCombiner] Use methods from SILInstructionWorklist."),
SILCombiner
is modified to call through to the methods which were added toSILInstructionWorklist
.In the third commit ("[SIL] Tweaked worklist instruction methods' style."), the methods' style is tweaked slightly.
At the moment there is an extra commit stemming from the PR (#27028) that this is based on.