Cranelift: Derive Copy for InstructionData (#5043)

* Cranelift: Derive `Copy` for `InstructionData`

And update `clone` calls to be copies.

* Add a test for `InstructionData`'s size
This commit is contained in:
Nick Fitzgerald
2022-10-12 07:58:27 -07:00
committed by GitHub
parent 1d8f982fe5
commit 03d77d4d6b
5 changed files with 22 additions and 10 deletions

View File

@@ -386,7 +386,7 @@ impl FunctionStencil {
.zip(self.dfg.inst_results(src))
.all(|(a, b)| self.dfg.value_type(*a) == self.dfg.value_type(*b)));
self.dfg[dst] = self.dfg[src].clone();
self.dfg[dst] = self.dfg[src];
self.layout.remove_inst(src);
}