Skip to content

Add a predicate to main loop of circular buffering#2660

Closed
naoyam wants to merge 2 commits intomainfrom
circular_buffer_predicate_main
Closed

Add a predicate to main loop of circular buffering#2660
naoyam wants to merge 2 commits intomainfrom
circular_buffer_predicate_main

Conversation

@naoyam
Copy link
Collaborator

@naoyam naoyam commented Jul 22, 2024

Example with double buffering:

for int i = 0; i < N; ++i
    if (idx(i+1) < logical_size && i + 1 < N)

This is only done when no epilogue is generated. In that case, this predicate is not necessary.

Example with double buffering:

for int i = 0; i < N; ++i
    if (idx(i+1) < logical_size && i + 1 < N)

This is only done when no epilogue is generated. In that case, this
predicate is not necessary.
naoyam added a commit that referenced this pull request Jul 22, 2024
This avoids extra memory accesses without adding extra predicates, which
was prototyped in PR #2660.
@naoyam naoyam mentioned this pull request Jul 22, 2024
@naoyam
Copy link
Collaborator Author

naoyam commented Jul 22, 2024

See #2663 as well.

@naoyam
Copy link
Collaborator Author

naoyam commented Jul 30, 2024

Closing as it's not strictly necessary

@naoyam naoyam closed this Jul 30, 2024
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

Successfully merging this pull request may close these issues.

1 participant