{
if (is_store(instr))
return false;
+ if (instr->regs_count == 0)
+ return false;
/* is dest a normal temp register: */
struct ir3_register *reg = instr->regs[0];
if (reg->flags & (IR3_REG_CONST | IR3_REG_IMMED))
ctx->instr_cnt++;
- if (instr->regs_count == 0)
- continue;
-
if (!writes_gpr(instr))
continue;
struct ir3_instruction *src;
struct ir3_register *reg;
- if (instr->regs_count == 0)
- continue;
-
/* There are a couple special cases to deal with here:
*
* fanout: used to split values from a higher class to a lower
list_for_each_entry (struct ir3_instruction, instr, &block->instr_list, node) {
struct ir3_register *reg;
- if (instr->regs_count == 0)
- continue;
-
if (writes_gpr(instr)) {
reg_assign(ctx, instr->regs[0], instr);
if (instr->regs[0]->flags & IR3_REG_HALF)