pub fn eliminate_identities(graph: &mut IrGraph) -> usize
Eliminate redundant identity nodes. Returns count of identities removed.