Home
last modified time | relevance | path

Searched refs:ssa_rep (Results 1 – 18 of 18) sorted by relevance

/art/compiler/dex/
Dgvn_dead_code_elimination_test.cc287 mir->ssa_rep = &ssa_reps_[i]; in DoPrepareMIRs()
289 std::copy_n(def->uses, def->num_uses, mir->ssa_rep->uses); in DoPrepareMIRs()
292 std::copy_n(def->defs, def->num_defs, mir->ssa_rep->defs); in DoPrepareMIRs()
310 mir->dalvikInsn.vA = SRegToVReg(mir->ssa_rep->uses, &use, (df_attrs & DF_A_WIDE) != 0); in DoPrepareMIRs()
313 mir->dalvikInsn.vB = SRegToVReg(mir->ssa_rep->uses, &use, (df_attrs & DF_B_WIDE) != 0); in DoPrepareMIRs()
316 mir->dalvikInsn.vC = SRegToVReg(mir->ssa_rep->uses, &use, (df_attrs & DF_C_WIDE) != 0); in DoPrepareMIRs()
617 ASSERT_EQ(1, mirs_[3].ssa_rep->num_uses); in TEST_F()
618 EXPECT_EQ(0, mirs_[3].ssa_rep->uses[0]); in TEST_F()
659 ASSERT_EQ(1, mirs_[3].ssa_rep->num_uses); in TEST_F()
660 EXPECT_EQ(0, mirs_[3].ssa_rep->uses[0]); in TEST_F()
[all …]
Dmir_optimization.cc63 if (mir->ssa_rep == nullptr) { in DoConstantPropagation()
81 SetConstant(mir->ssa_rep->defs[0], vB); in DoConstantPropagation()
84 SetConstant(mir->ssa_rep->defs[0], vB << 16); in DoConstantPropagation()
88 SetConstantWide(mir->ssa_rep->defs[0], static_cast<int64_t>(vB)); in DoConstantPropagation()
91 SetConstantWide(mir->ssa_rep->defs[0], d_insn->vB_wide); in DoConstantPropagation()
94 SetConstantWide(mir->ssa_rep->defs[0], static_cast<int64_t>(vB) << 48); in DoConstantPropagation()
104 for (i = 0; i < mir->ssa_rep->num_uses; i++) { in DoConstantPropagation()
105 if (!is_constant_v_->IsBitSet(mir->ssa_rep->uses[i])) break; in DoConstantPropagation()
108 if (i == mir->ssa_rep->num_uses) { in DoConstantPropagation()
109 SetConstant(mir->ssa_rep->defs[0], constant_values_[mir->ssa_rep->uses[0]]); in DoConstantPropagation()
[all …]
Dgvn_dead_code_elimination.cc365 SSARepresentation* ssa_rep = mir_data_[c].mir->ssa_rep; in IsSRegUsed() local
366 for (int i = 0; i != ssa_rep->num_uses; ++i) { in IsSRegUsed()
367 if (ssa_rep->uses[i] == s_reg) { in IsSRegUsed()
380 SSARepresentation* ssa_rep = mir_data_[c].mir->ssa_rep; in IsVRegUsed() local
381 for (int i = 0; i != ssa_rep->num_uses; ++i) { in IsVRegUsed()
382 if (mir_graph->SRegToVReg(ssa_rep->uses[i]) == v_reg) { in IsVRegUsed()
393 SSARepresentation* ssa_rep = mir_data_[c].mir->ssa_rep; in RenameSRegUses() local
394 for (int i = 0; i != ssa_rep->num_uses; ++i) { in RenameSRegUses()
395 if (ssa_rep->uses[i] == old_s_reg) { in RenameSRegUses()
396 ssa_rep->uses[i] = new_s_reg; in RenameSRegUses()
[all …]
Dlocal_value_numbering.cc388 int s_reg = pred_bb->last_mir_insn->ssa_rep->uses[0]; in MergeOne()
705 int s_reg = least_entries_bb->last_mir_insn->ssa_rep->uses[0]; in MergeNullChecked()
1028 uint16_t res = GetOperandValue(mir->ssa_rep->defs[0]); in MarkNonAliasingNonNull()
1115 uint16_t base = GetOperandValue(mir->ssa_rep->uses[0]); in HandlePutObject()
1134 const int32_t* uses = mir->ssa_rep->uses; in HandleInvokeArgs()
1135 const int32_t* uses_end = uses + mir->ssa_rep->num_uses; in HandleInvokeArgs()
1169 int32_t* uses = mir->ssa_rep->uses; in HandlePhi()
1172 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1175 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1191 value_name = gvn_->LookupValue(kNoValue, mir->ssa_rep->defs[0], kNoValue, kNoValue); in HandlePhi()
[all …]
Dmir_dataflow.cc1076 mir->ssa_rep->num_uses = num_uses; in AllocateSSAUseData()
1078 if (mir->ssa_rep->num_uses_allocated < num_uses) { in AllocateSSAUseData()
1079 mir->ssa_rep->uses = arena_->AllocArray<int32_t>(num_uses, kArenaAllocDFInfo); in AllocateSSAUseData()
1084 mir->ssa_rep->num_defs = num_defs; in AllocateSSADefData()
1086 if (mir->ssa_rep->num_defs_allocated < num_defs) { in AllocateSSADefData()
1087 mir->ssa_rep->defs = arena_->AllocArray<int32_t>(num_defs, kArenaAllocDFInfo); in AllocateSSADefData()
1100 HandleSSAUse(mir->ssa_rep->uses, d_insn->arg[i], i); in DataFlowSSAFormat35C()
1113 HandleSSAUse(mir->ssa_rep->uses, d_insn->vC+i, i); in DataFlowSSAFormat3RC()
1130 HandleSSAUse(mir->ssa_rep->uses, d_insn.vA, 0); in DataFlowSSAFormatExtended()
1132 HandleSSAUse(mir->ssa_rep->uses, d_insn.vA + 1, 1); in DataFlowSSAFormatExtended()
[all …]
Dmir_graph.cc1004 mir->ssa_rep ? GetDalvikDisassembly(mir) : in DumpCFG()
1302 SSARepresentation* ssa_rep = mir->ssa_rep; in DisassembleExtendedInstr() local
1303 int defs = (ssa_rep != nullptr) ? ssa_rep->num_defs : 0; in DisassembleExtendedInstr()
1304 int uses = (ssa_rep != nullptr) ? ssa_rep->num_uses : 0; in DisassembleExtendedInstr()
1317 GetSSANameWithConst(ssa_rep->defs[0], true).c_str(), in DisassembleExtendedInstr()
1318 GetSSANameWithConst(ssa_rep->uses[0], true).c_str())); in DisassembleExtendedInstr()
1321 …decoded_mir->append(StringPrintf(", %s:%d", GetSSANameWithConst(ssa_rep->uses[i], true).c_str(), i… in DisassembleExtendedInstr()
1328 if (ssa_rep != nullptr) { in DisassembleExtendedInstr()
1330 decoded_mir->append(GetSSANameWithConst(ssa_rep->defs[0], false)); in DisassembleExtendedInstr()
1333 decoded_mir->append(GetSSANameWithConst(ssa_rep->defs[1], false)); in DisassembleExtendedInstr()
[all …]
Dtype_inference.cc168 int32_t s_reg = check_cast->ssa_rep->uses[0]; in AddCheckCast()
266 sregs[entry.first->ssa_rep->uses[0]].MergeNonArrayFlags( in MergeCheckCastConflicts()
320 auto sreg_it = split_sreg_data_.find(mir->ssa_rep->uses[0]); in ProcessCheckCast()
333 int32_t s_reg = check_cast->ssa_rep->uses[0]; in FindDefBlock()
430 size_t num_uses = mir->ssa_rep->num_uses; in Apply()
431 const int32_t* uses = mir->ssa_rep->uses; in Apply()
432 const int32_t* defs = mir->ssa_rep->defs; in Apply()
460 size_t num_uses = mir->ssa_rep->num_uses; in Apply()
461 const int32_t* uses = mir->ssa_rep->uses; in Apply()
462 const int32_t* defs = mir->ssa_rep->defs; in Apply()
[all …]
Dlocal_value_numbering_test.cc158 mir->ssa_rep = &ssa_reps_[i]; in DoPrepareMIRs()
159 mir->ssa_rep->num_uses = def->num_uses; in DoPrepareMIRs()
160 mir->ssa_rep->uses = const_cast<int32_t*>(def->uses); // Not modified by LVN. in DoPrepareMIRs()
161 mir->ssa_rep->num_defs = def->num_defs; in DoPrepareMIRs()
162 mir->ssa_rep->defs = const_cast<int32_t*>(def->defs); // Not modified by LVN. in DoPrepareMIRs()
850 const int32_t wide_sregs[] = { mirs_[i].ssa_rep->defs[0] }; in TEST_F()
854 cu_.mir_graph->reg_location_[mirs_[i].ssa_rep->defs[0]].fp = true; in TEST_F()
906 cu_.mir_graph->reg_location_[mirs_[i].ssa_rep->defs[0]].fp = true; in TEST_F()
Dtype_inference_test.cc427 mir->ssa_rep = &ssa_reps_[i]; in DoPrepareMIRs()
428 mir->ssa_rep->num_uses = def->num_uses; in DoPrepareMIRs()
429 mir->ssa_rep->uses = const_cast<int32_t*>(def->uses); // Not modified by LVN. in DoPrepareMIRs()
430 mir->ssa_rep->num_defs = def->num_defs; in DoPrepareMIRs()
431 mir->ssa_rep->defs = const_cast<int32_t*>(def->defs); // Not modified by LVN. in DoPrepareMIRs()
682 ASSERT_LE(1u, mirs_[i].ssa_rep->num_defs); in TEST_F()
683 ExpectSRegType(mirs_[i].ssa_rep->defs[0], expectations[i]); in TEST_F()
737 ASSERT_LE(1u, mirs_[i].ssa_rep->num_defs); in TEST_F()
738 ExpectSRegType(mirs_[i].ssa_rep->defs[0], expectations[i]); in TEST_F()
805 ASSERT_LE(1u, mirs_[2 * i].ssa_rep->num_defs); in TEST_F()
[all …]
Dglobal_value_numbering.cc179 int s_reg = pred_bb->last_mir_insn->ssa_rep->uses[0]; in NullCheckedInAllPredecessors()
212 uint16_t operand = lvns_[pred_id]->GetSregValue(pred_bb->last_mir_insn->ssa_rep->uses[0]); in IsBlockEnteredOnTrue()
Dmir_graph.h337 SSARepresentation* ssa_rep; variable
357 next(nullptr), ssa_rep(nullptr) { in MIR()
874 DCHECK(num < mir->ssa_rep->num_uses); in GetRawSrc()
875 RegLocation res = reg_location_[mir->ssa_rep->uses[num]]; in GetRawSrc()
880 DCHECK_GT(mir->ssa_rep->num_defs, 0); in GetRawDest()
881 RegLocation res = reg_location_[mir->ssa_rep->defs[0]]; in GetRawDest()
Dssa_transformation.cc511 int ssa_reg = mir->ssa_rep->defs[0]; in InsertPhiNodeOperands()
518 int* uses = mir->ssa_rep->uses; in InsertPhiNodeOperands()
Dglobal_value_numbering_test.cc259 mir->ssa_rep = &ssa_reps_[i]; in DoPrepareMIRs()
260 mir->ssa_rep->num_uses = def->num_uses; in DoPrepareMIRs()
261 mir->ssa_rep->uses = const_cast<int32_t*>(def->uses); // Not modified by LVN. in DoPrepareMIRs()
262 mir->ssa_rep->num_defs = def->num_defs; in DoPrepareMIRs()
263 mir->ssa_rep->defs = const_cast<int32_t*>(def->defs); // Not modified by LVN. in DoPrepareMIRs()
1074 if ((mirs_[i].ssa_rep->defs[0] % 2) == 0) { in TEST_F()
1075 const int32_t wide_sregs[] = { mirs_[i].ssa_rep->defs[0] }; in TEST_F()
Dmir_optimization_test.cc309 mir->ssa_rep = nullptr; in DoPrepareMIRs()
/art/compiler/dex/quick/
Dcodegen_util.cc1404 const size_t num_defs = prev_mir->ssa_rep->num_defs; in UpdateReferenceVRegsLocal()
1405 const int32_t* defs = prev_mir->ssa_rep->defs; in UpdateReferenceVRegsLocal()
1429 references->SetBit(mir_graph_->SRegToVReg(mir->ssa_rep->uses[0])); in UpdateReferenceVRegs()
/art/compiler/dex/quick/arm/
Dint_arm.cc252 if (mir->ssa_rep->num_uses == 1) { in GenSelect()
295 RegLocation rl_true = mir_graph_->reg_location_[mir->ssa_rep->uses[1]]; in GenSelect()
296 RegLocation rl_false = mir_graph_->reg_location_[mir->ssa_rep->uses[2]]; in GenSelect()
/art/compiler/dex/quick/arm64/
Dint_arm64.cc201 if (mir->ssa_rep->num_uses == 1) { in GenSelect()
207 RegLocation rl_true = mir_graph_->reg_location_[mir->ssa_rep->uses[1]]; in GenSelect()
208 RegLocation rl_false = mir_graph_->reg_location_[mir->ssa_rep->uses[2]]; in GenSelect()
/art/compiler/dex/quick/x86/
Dint_x86.cc284 const bool is_constant_case = (mir->ssa_rep->num_uses == 1); in GenSelect()