void retypeDests(IRInstruction* inst, const IRUnit* unit) { for (int i = 0; i < inst->numDsts(); ++i) { auto const ssa = inst->dst(i); auto const oldType = ssa->type(); retypeDst(inst, i); if (ssa->type() != oldType) { ITRACE(5, "reflowTypes: retyped {} in {}\n", oldType.toString(), inst->toString()); } } }
void retypeDests(IRInstruction* inst, const IRUnit* unit) { for (int i = 0; i < inst->numDsts(); ++i) { auto const ssa = inst->dst(i); auto const oldType = ssa->type(); retypeDst(inst, i); if (!ssa->type().equals(oldType)) { ITRACE(5, "reflowTypes: retyped {} in {}\n", oldType.toString(), inst->toString()); } } assert(checkOperandTypes(inst, unit)); }