Skip to main content

Module dedup

Module dedup 

Source
Expand description

Block deduplication pass.

Identifies structurally identical non-fallthrough blocks (same opcode + immediate sequence) and eliminates duplicates by marking them as dead code and redirecting predecessors to a single canonical copy.

Structsยง

DedupKey ๐Ÿ”’
Dedup key: instruction-level structural fingerprint, CFG successor blocks, and terminator jump kind.

Functionsยง

block_fingerprint ๐Ÿ”’
Builds a structural fingerprint of a block from instruction data, without consulting the raw bytecode.