Lines Matching refs:phi
1928 ir_insn *phi = &ctx->ir_base[phi_ref]; in ir_try_split_if_cmp() local
1930 if (phi->op == IR_PHI in ir_try_split_if_cmp()
1931 && phi->inputs_count == 3 in ir_try_split_if_cmp()
1932 && phi->op1 == insn->op1 in ir_try_split_if_cmp()
1934 && ((IR_IS_CONST_REF(phi->op2) && !IR_IS_SYM_CONST(ctx->ir_base[phi->op2].op)) in ir_try_split_if_cmp()
1935 || (IR_IS_CONST_REF(phi->op3) && !IR_IS_SYM_CONST(ctx->ir_base[phi->op3].op)))) { in ir_try_split_if_cmp()
1951 if (!IR_IS_CONST_REF(phi->op2) || IR_IS_SYM_CONST(ctx->ir_base[phi->op2].op)) { in ir_try_split_if_cmp()
1952 IR_ASSERT(IR_IS_CONST_REF(phi->op3)); in ir_try_split_if_cmp()
1953 SWAP_REFS(phi->op2, phi->op3); in ir_try_split_if_cmp()
1958 if (ir_cmp_is_true(cond->op, &ctx->ir_base[phi->op2], &ctx->ir_base[cond->op2])) { in ir_try_split_if_cmp()
1965 if (IR_IS_CONST_REF(phi->op3) && !IR_IS_SYM_CONST(ctx->ir_base[phi->op3].op)) { in ir_try_split_if_cmp()
1966 …if (ir_cmp_is_true(cond->op, &ctx->ir_base[phi->op3], &ctx->ir_base[cond->op2]) ^ (op == IR_IF_TRU… in ir_try_split_if_cmp()
1992 MAKE_NOP(phi); CLEAR_USES(phi_ref); in ir_try_split_if_cmp()
2032 MAKE_NOP(phi); CLEAR_USES(phi_ref); in ir_try_split_if_cmp()
2073 if (!IR_IS_CONST_REF(phi->op3)) { in ir_try_split_if_cmp()
2074 ir_use_list_replace_one(ctx, phi->op3, phi_ref, insn->op2); in ir_try_split_if_cmp()
2087 cond->op1 = phi->op3; in ir_try_split_if_cmp()
2088 MAKE_NOP(phi); in ir_try_split_if_cmp()
2125 ir_insn *phi = &ctx->ir_base[phi_ref]; in ir_optimize_merge() local
2131 if (phi->op == IR_PHI) { in ir_optimize_merge()
2151 ir_optimize_phi(ctx, merge_ref, merge, phi_ref, phi, worklist); in ir_optimize_merge()