Repository navigation
vp9: fill the inter-prediction parameter block field by field (1.034x) - #10
Merged
Merged
Conversation
perf annotate of reconstructVP9InterPredictBlock put 65 percent of its samples on the copy of a composite literal (16-byte loads of 8-byte stores, store-forwarding stall). Field stores into a zeroed variable remove it. VP9 1 tile 5331 to 5156 us/frame on fractal, six interleaved rounds; vectors 756 pass, simd and plain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
FrameRefSignBias is built as one 32-bit word, and readVP9InterBlockModeInfo writes mi.Mv directly instead of filling a local array and copying it at the end. Note: these files carry a generated-file header; a regeneration from portgovpx must carry the same change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perf annotate of
reconstructVP9InterPredictBlock(v0.5.0, VP9 1 tile) put about 65 % of the function's samples (6 % of the clip) on the copy of thevp9InterPredictPlaneParamscomposite literal: the literal is built in a temporary with 8-byte stores, then copied with 16-byte loads, which cannot be forwarded from the stores. Filling a zeroed variable field by field removes the copy (three sites: the fast path, and the two whole-block generic paths).Measured on fractal (Ryzen 9 7950X, core 11, load 1.1), six interleaved rounds against the v0.5.0 test binary: 5331 to 5156 us/frame (1.034x; a first run 1.037x). VP8 and the 4-tile clip are not touched by the change. The libvpx vectors pass (756 subtests,
GOEXPERIMENT=simdand plain);-raceruns in CI.Refs #8
🤖 Generated with Claude Code