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

BPF optimizer: Refactor removal operations across optimizers. #9860

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

copybara-service[bot]
Copy link

BPF optimizer: Refactor removal operations across optimizers.

This introduces a codeRemoval type which acts as a tracker for removal of
instructions during execution of an optimizer.

This simplifies optimizers that use it, notably to avoid having to do
backwards iterations in all of them.

No heap allocations are performed unless code is actually removed, and only
one allocation is performed when code is to be removed.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Jan 3, 2024
This introduces a `codeRemoval` type which acts as a tracker for removal of
instructions during execution of an optimizer.

This simplifies optimizers that use it, notably to avoid having to do
backwards iterations in all of them.

No heap allocations are performed unless code is actually removed, and only
one allocation is performed when code is to be removed.

PiperOrigin-RevId: 595575409
@copybara-service copybara-service bot merged commit 2097354 into master Jan 4, 2024
@copybara-service copybara-service bot deleted the test/cl595505097 branch January 4, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant