Remove the second_result field from instructions.

Now that result values are stored in value lists in the DFG, these
head-of-list pointers are no longer needed.
This commit is contained in:
Jakob Stoklund Olesen
2017-04-12 09:08:29 -07:00
parent 69180a2f84
commit 8b840e0a9a
5 changed files with 13 additions and 83 deletions

View File

@@ -17,7 +17,6 @@ use ir::types;
use ir::DataFlowGraph;
use entity_list;
use packed_option::PackedOption;
use ref_slice::{ref_slice, ref_slice_mut};
/// Some instructions use an external list of argument values because there is not enough space in
@@ -126,7 +125,6 @@ pub enum InstructionData {
UnarySplit {
opcode: Opcode,
ty: Type,
second_result: PackedOption<Value>,
arg: Value,
},
Binary {
@@ -143,7 +141,6 @@ pub enum InstructionData {
BinaryOverflow {
opcode: Opcode,
ty: Type,
second_result: PackedOption<Value>,
args: [Value; 2],
},
Ternary {
@@ -154,7 +151,6 @@ pub enum InstructionData {
MultiAry {
opcode: Opcode,
ty: Type,
second_result: PackedOption<Value>,
args: ValueList,
},
InsertLane {
@@ -216,14 +212,12 @@ pub enum InstructionData {
Call {
opcode: Opcode,
ty: Type,
second_result: PackedOption<Value>,
func_ref: FuncRef,
args: ValueList,
},
IndirectCall {
opcode: Opcode,
ty: Type,
second_result: PackedOption<Value>,
sig_ref: SigRef,
args: ValueList,
},