Skip to content
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

PPCAnalyst: Reduce number of iterations in ReorderInstructionsCore #11916

Merged
merged 1 commit into from Jun 30, 2023

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Jun 9, 2023

We can utilize the fact that if swapping two instructions causes another swap to become possible, that swap involves one of the two instructions we just swapped. There's need to search for new swap opportunities as far back as the beginning of the block; we can just go one step back.

We can utilize the fact that if swapping two instructions causes another
swap to become possible, that swap involves one of the two instructions
we just swapped. There's need to search for new swap opportunities as
far back as the beginning of the block; we can just go one step back.
@AdmiralCurtiss
Copy link
Contributor

Makes sense to me.

@AdmiralCurtiss AdmiralCurtiss merged commit ed44035 into dolphin-emu:master Jun 30, 2023
14 checks passed
@JosJuice JosJuice deleted the ppcanalyst-reorder-loop branch July 1, 2023 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants