Skip to content

fuzz: Add memory operations to the graph fuzzer#171

Merged
dstogov merged 1 commit into
dstogov:masterfrom
weltling:fuzz-graph-memory
Jul 20, 2026
Merged

fuzz: Add memory operations to the graph fuzzer#171
dstogov merged 1 commit into
dstogov:masterfrom
weltling:fuzz-graph-memory

Conversation

@weltling

Copy link
Copy Markdown
Contributor

Emit local memory round trips so the mem2ssa pass and the load store aliasing analysis are exercised by the structured graph fuzzer. Bit 4 of the operation selector now shares two shapes through bit 3. One writes a named VAR with VSTORE and reads it back with VLOAD, the other allocates a stack slot with ALLOCA, writes it with STORE and reads it back with LOAD. Both keep the working type so the operand pool stays homogeneous and the loaded value feeds later records.

Enable the mem2ssa pass in the harness so the emitted memory is promoted to SSA values and that pass is covered as well.

Emit local memory round trips so the mem2ssa pass and the load store
aliasing analysis are exercised by the structured graph fuzzer. Bit 4 of
the operation selector now shares two shapes through bit 3. One writes a
named VAR with VSTORE and reads it back with VLOAD, the other allocates a
stack slot with ALLOCA, writes it with STORE and reads it back with LOAD.
Both keep the working type so the operand pool stays homogeneous and the
loaded value feeds later records.

Enable the mem2ssa pass in the harness so the emitted memory is promoted
to SSA values and that pass is covered as well.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
@weltling
weltling marked this pull request as ready for review July 18, 2026 08:11
@dstogov
dstogov merged commit 9f03ed3 into dstogov:master Jul 20, 2026
8 checks passed
@weltling
weltling deleted the fuzz-graph-memory branch July 20, 2026 07:17
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.

2 participants