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

Loop can be rolled up without cost #416

Open
henkmuller opened this issue Dec 10, 2024 · 0 comments
Open

Loop can be rolled up without cost #416

henkmuller opened this issue Dec 10, 2024 · 0 comments

Comments

@henkmuller
Copy link
Contributor

henkmuller commented Dec 10, 2024

NextRxWord: // Partially un-rolled to assist with timing

This code:

NextRxWord:	    // Partially un-rolled to assist with timing
    in         r11, res[r0]
    crc32_inc  r6, r11, r9, r4, 1
    stw        r11, r1[r4]
    in         r11, res[r0]
    ...
    bu         NextRxWord

can be rolled up (without loss of performance) to:

    in         r11, res[r0]
NextRxWord:
    crc32_inc  r6, r11, r9, r4, 1
    stw        r11, r1[r4]
    { in       r11, res[r0]; bu NextRxWord }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant