Repository navigation
Feat/devectorize - #1010
Merged
Merged
Feat/devectorize#1010
Conversation
Reduce synthetic wide SSA slices to direct lane expressions with the default-on wideslice option. Add devectorize to recover a single scalar sum loop when its equivalence to the vector reduction is established. devectorize defaults off in the catalog and is enabled by the aggressive preset. Include self-contained x86-64 regressions, matcher unit tests, option catalog entries, and phase documentation. Co-Authored-By: Claude Fable 5.1 <[email protected]>
ReversingWithMe
force-pushed
the
feat/devectorize
branch
from
October 12, 2026 00:05
684b7a4 to
11625e2
Compare
… global store devectorize re-rolled a reduction even when a block it drops or reruns wrote global storage: the early return after the fold, the remainder loop and the scalar exit could each store to a global, and a loop-carried value the remainder loop counted from the handoff index escaped through such a store. Every block the match inspects now refuses an op whose output is persistent storage. The guard bound no longer takes a signed compare against a negative constant as a lower bound (nor overflows on the maximum constant), and a lane must lie inside the bytes of the load it is sliced from. RuleWideSlice set its rewritten opcodes with a flagless TypeOp, so the PIECE/COPY/bitwise ops it made lacked the unary/binary/commutative flags later passes read; it now takes the canonical TypeOp. On libzstd this drops the functions wideslice changes from 21 to the 7 where it removes wide temporaries. New stage test kuna-devectorize-effects.xml (two hand-written sums whose exits disagree on a store to 0x3000) fails on the previous head. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011d7uHgQPRpFwdybmGwWHtw
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011d7uHgQPRpFwdybmGwWHtw
Contributor
|
[AUTOMATED] Merged with one review fix-up on top (99f7916):
Recompiled output from 26 reductions under 9 clang/gcc configurations matches the binaries on random inputs, and both options are within speed noise. |
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.
Add O3/de-vectorization experimental SSA analysis.