diff options
author | Rob Clark <[email protected]> | 2016-05-03 11:47:47 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-04 11:25:55 -0400 |
commit | a6ad30202cacc933290f478d8f518a7b066268b6 (patch) | |
tree | 51f9b05a56be6921959c2e62998734abd0dccd26 /src/gallium/drivers/freedreno | |
parent | f0a1f3de27831d1ccb8a51fc0c99d63f25fd6e2a (diff) |
freedreno/ir3: remove a couple redundant is_flow()s
Now that the opc's encode the instruction category (making them unique)
we no longer need to check the category in addition to the opc.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_depth.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_legalize.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_depth.c b/src/gallium/drivers/freedreno/ir3/ir3_depth.c index c3f6de965ce..1b8a446ca65 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_depth.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_depth.c @@ -137,7 +137,7 @@ remove_unused_by_block(struct ir3_block *block) { list_for_each_entry_safe (struct ir3_instruction, instr, &block->instr_list, node) { if (!ir3_instr_check_mark(instr)) { - if (is_flow(instr) && (instr->opc == OPC_END)) + if (instr->opc == OPC_END) continue; /* mark it, in case it is input, so we can * remove unused inputs: diff --git a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c index 7a49f4c371c..6acea011d5c 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c @@ -292,7 +292,7 @@ resolve_dest_block(struct ir3_block *block) } else if (list_length(&block->instr_list) == 1) { struct ir3_instruction *instr = list_first_entry( &block->instr_list, struct ir3_instruction, node); - if (is_flow(instr) && (instr->opc == OPC_JUMP)) + if (instr->opc == OPC_JUMP) return block->successors[0]; } } |