Lines Matching refs:operands

223    if (instr->format != Format::PSEUDO_BRANCH || instr->operands.size() == 0 ||
224 instr->operands[0].physReg() != scc)
227 Idx op0_instr_idx = last_writer_idx(ctx, instr->operands[0]);
249 op0_instr->operands[0].physReg() != vcc || op0_instr->operands[1].physReg() != exec ||
253 assert(last_vcc_wr->definitions[0].tempId() == op0_instr->operands[0].tempId());
256 ctx.uses[instr->operands[0].tempId()]--;
258 instr->operands[0] = op0_instr->operands[0];
284 (instr->operands[0].constantEquals(0) || instr->operands[1].constantEquals(0)) &&
285 (instr->operands[0].isTemp() || instr->operands[1].isTemp())) {
287 if (instr->operands[0].isConstant())
288 std::swap(instr->operands[0], instr->operands[1]);
290 if (ctx.uses[instr->operands[0].tempId()] > 1)
294 Idx wr_idx = last_writer_idx(ctx, instr->operands[0]);
340 ctx.uses[instr->operands[0].tempId()]--;
341 instr->operands[0] = Operand(wr_instr->definitions[1].getTemp(), scc);
342 ctx.uses[instr->operands[0].tempId()]++;
345 instr->operands[1] = Operand::zero();
351 } else if ((instr->format == Format::PSEUDO_BRANCH && instr->operands.size() == 1 &&
352 instr->operands[0].physReg() == scc) ||
361 Idx wr_idx = last_writer_idx(ctx, instr->operands[scc_op_idx]);
371 if (wr_instr->operands[0].physReg() != scc)
373 if (!wr_instr->operands[1].constantEquals(0))
377 if (ctx.uses[instr->operands[scc_op_idx].tempId()] > 1)
386 std::swap(instr->operands[0], instr->operands[1]);
393 ctx.uses[instr->operands[scc_op_idx].tempId()]--;
394 instr->operands[scc_op_idx] = wr_instr->operands[0];
415 for (unsigned i = 0; i < MIN2(2, instr->operands.size()); i++) {
416 Idx op_instr_idx = last_writer_idx(ctx, instr->operands[i]);
430 if (mov->definitions[0].physReg() == mov->operands[0].physReg() &&
435 if (is_clobbered_since(ctx, mov->operands[0], op_instr_idx))
445 ctx.uses[mov->operands[0].tempId()]++;
452 std::swap(dpp->operands[0], dpp->operands[1]);
454 dpp->operands[0] = mov->operands[0];
459 std::swap(dpp->operands[0], dpp->operands[1]);
463 dpp->operands[0] = mov->operands[0];