MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / remove_nops

Function remove_nops

crates/rustc_codegen_spirv/src/linker/mem2reg.rs:573–579  ·  view source on GitHub ↗
(blocks: &mut [Block])

Source from the content-addressed store, hash-verified

571}
572
573fn remove_nops(blocks: &mut [Block]) {
574 for block in blocks {
575 block
576 .instructions
577 .retain(|inst| inst.class.opcode != Op::Nop);
578 }
579}
580
581fn remove_old_variables(
582 blocks: &mut [Block],

Callers 1

insert_phis_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected