(&'a self, dfg: &'a DataFlowGraph)
| 168 | |
| 169 | impl NewOrExistingInst { |
| 170 | fn get_inst_key<'a>(&'a self, dfg: &'a DataFlowGraph) -> (Type, InstructionData) { |
| 171 | match self { |
| 172 | NewOrExistingInst::New(data, ty) => (*ty, *data), |
| 173 | NewOrExistingInst::Existing(inst) => { |
| 174 | let ty = dfg.ctrl_typevar(*inst); |
| 175 | (ty, dfg.insts[*inst]) |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | impl<'opt, 'analysis> OptimizeCtx<'opt, 'analysis> |
no test coverage detected