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

Simplify Arm64GPRCache::Flush #9213

Merged
merged 1 commit into from Nov 2, 2020
Merged

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Nov 1, 2020

flush = cond ? flush : true makes little sense when flush is always true at that point.

`flush = cond ? flush : true` makes little sense when `flush`
is always true at that point.
Copy link
Member

@degasus degasus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to analyze why there is actually this code. I think this was from the very old days (2014) when we tried to speed up interpreter fallbacks. So this was missed on a cleanup. And indeed, as we mostly use Flush for branching, there is no point in keeping any registers dirty.

@lioncash lioncash merged commit c3bc079 into dolphin-emu:master Nov 2, 2020
10 checks passed
@JosJuice JosJuice deleted the flush-ternary branch November 2, 2020 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants