Lines Matching refs:opt

38 static ir_ref ir_sccp_fold(ir_ctx *ctx, ir_insn *_values, ir_ref res, uint32_t opt, ir_ref op1, ir_…  in ir_sccp_fold()  argument
53 switch (ir_folding(ctx, opt, op1, op2, op3, op1_insn, op2_insn, op3_insn)) { in ir_sccp_fold()
55 opt = ctx->fold_insn.optx; in ir_sccp_fold()
103 …} else if (_values[res].opt != IR_OPT(insn->type, insn->type) || _values[res].val.u64 != insn->val… in ir_sccp_fold()
222 if (!new_const || new_const->opt != v->opt || new_const->val.u64 != v->val.u64) { in ir_sccp_meet_phi()
243 _values[i].optx = new_const->opt; in ir_sccp_meet_phi()
246 } else if (_values[i].opt == new_const->opt && _values[i].val.u64 == new_const->val.u64) { in ir_sccp_meet_phi()
332 insn->opt = IR_NOP; /* keep "inputs_count" */ in ir_sccp_make_nop()
346 insn->opt = IR_NOP; /* keep "inputs_count" */ in ir_sccp_remove_insn()
368 insn->opt = IR_NOP; /* keep "inputs_count" */ in ir_sccp_remove_insn2()
395 insn->opt = IR_NOP; /* keep "inputs_count" */ in ir_sccp_replace_insn()
452 insn->opt = IR_NOP; /* keep "inputs_count" */ in ir_sccp_replace_insn2()
498 uint32_t opt; in ir_sccp_fold2() local
503 opt = insn->opt; in ir_sccp_fold2()
513 switch (ir_folding(ctx, opt, op1, op2, op3, op1_insn, op2_insn, op3_insn)) { in ir_sccp_fold2()
515 opt = ctx->fold_insn.optx; in ir_sccp_fold2()
522 if (insn->opt != ctx->fold_insn.opt in ir_sccp_fold2()
530 insn->optx = ctx->fold_insn.opt; in ir_sccp_fold2()
531 IR_ASSERT(!IR_OP_HAS_VAR_INPUTS(ir_op_flags[opt & IR_OPT_OP_MASK])); in ir_sccp_fold2()
532 insn->inputs_count = IR_INPUT_EDGES_COUNT(ir_op_flags[opt & IR_OPT_OP_MASK]); in ir_sccp_fold2()
2218 } else if (!ir_sccp_fold(ctx, _values, i, insn->opt, insn->op1, insn->op2, insn->op3)) { in ir_sccp()