Home
last modified time | relevance | path

Searched refs:num_uses (Results 1 – 13 of 13) sorted by relevance

/art/compiler/dex/
Dmir_dataflow.cc1017 void MIRGraph::AllocateSSAUseData(MIR *mir, int num_uses) { in AllocateSSAUseData() argument
1018 mir->ssa_rep->num_uses = num_uses; in AllocateSSAUseData()
1020 if (mir->ssa_rep->num_uses_allocated < num_uses) { in AllocateSSAUseData()
1021 … mir->ssa_rep->uses = static_cast<int*>(arena_->Alloc(sizeof(int) * num_uses, kArenaAllocDFInfo)); in AllocateSSAUseData()
1023 …mir->ssa_rep->fp_use = static_cast<bool*>(arena_->Alloc(sizeof(bool) * num_uses, kArenaAllocDFInfo… in AllocateSSAUseData()
1041 int num_uses = d_insn->vA; in DataFlowSSAFormat35C() local
1044 AllocateSSAUseData(mir, num_uses); in DataFlowSSAFormat35C()
1046 for (i = 0; i < num_uses; i++) { in DataFlowSSAFormat35C()
1054 int num_uses = d_insn->vA; in DataFlowSSAFormat3RC() local
1057 AllocateSSAUseData(mir, num_uses); in DataFlowSSAFormat3RC()
[all …]
Dvreg_analysis.cc277 int num_uses = mir->dalvikInsn.vA; in InferTypeAndSize() local
288 for (int i = next; i < num_uses;) { in InferTypeAndSize()
326 for (int i = 0; ssa_rep->fp_use && i< ssa_rep->num_uses; i++) { in InferTypeAndSize()
351 for (int i = 0; i < ssa_rep->num_uses; i++) { in InferTypeAndSize()
381 for (int i = 0; i < ssa_rep->num_uses; i++) { in InferTypeAndSize()
389 DCHECK_EQ(ssa_rep->num_uses, 2); in InferTypeAndSize()
Dmir_optimization.cc91 for (i = 0; i < mir->ssa_rep->num_uses; i++) { in DoConstantPropagation()
95 if (i == mir->ssa_rep->num_uses) { in DoConstantPropagation()
176 for (int i = 0; i < mir->ssa_rep->num_uses; i++) { in FindPhi()
385 mir_next->ssa_rep->num_uses = mir->ssa_rep->num_uses; in BasicBlockOpt()
389 mir->ssa_rep->num_uses = 0; in BasicBlockOpt()
511 mir->ssa_rep->num_uses = 3; in BasicBlockOpt()
521 static_cast<bool*>(arena_->Alloc(sizeof(bool) * mir->ssa_rep->num_uses, in BasicBlockOpt()
523 for (int i = 0; i < mir->ssa_rep->num_uses; i++) { in BasicBlockOpt()
534 if (phi->ssa_rep->num_uses == 2) { in BasicBlockOpt()
542 for (int i = 0; i < phi->ssa_rep->num_uses; i++) { in BasicBlockOpt()
[all …]
Dssa_transformation.cc558 size_t num_uses = bb->predecessors->Size(); in InsertPhiNodeOperands() local
559 AllocateSSAUseData(mir, num_uses); in InsertPhiNodeOperands()
562 static_cast<BasicBlockId*>(arena_->Alloc(sizeof(BasicBlockId) * num_uses, in InsertPhiNodeOperands()
Dlocal_value_numbering.cc468 for (uint16_t i = 0u; i != mir->ssa_rep->num_uses; ++i) { in PruneNonAliasingRefsForCatch()
1024 int16_t num_uses = mir->ssa_rep->num_uses; in HandlePhi() local
1033 for (int16_t i = 0; i != num_uses; ++i) { in HandlePhi()
1046 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1049 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1405 if (kLocalValueNumberingEnableFilledNewArrayTracking && mir->ssa_rep->num_uses != 0u) { in GetValueNumber()
1409 for (size_t i = 0u, count = mir->ssa_rep->num_uses; i != count; ++i) { in GetValueNumber()
1421 for (size_t i = 0u, count = mir->ssa_rep->num_uses; i != count; ++i) { in GetValueNumber()
1444 for (size_t i = 0u, count = mir->ssa_rep->num_uses; i != count; ++i) { in GetValueNumber()
Dmir_graph.h258 int16_t num_uses; member
770 DCHECK(num < mir->ssa_rep->num_uses); in GetRawSrc()
1039 void AllocateSSAUseData(MIR *mir, int num_uses);
Dlocal_value_numbering_test.cc47 size_t num_uses; member
150 mir->ssa_rep->num_uses = def->num_uses; in DoPrepareMIRs()
Dglobal_value_numbering_test.cc61 size_t num_uses; member
252 allocator_->Alloc(def->num_uses * sizeof(BasicBlockId), kArenaAllocDFInfo)); in DoPrepareMIRs()
253 for (size_t i = 0; i != def->num_uses; ++i) { in DoPrepareMIRs()
258 mir->ssa_rep->num_uses = def->num_uses; in DoPrepareMIRs()
Dmir_graph.cc1225 int uses = (ssa_rep != NULL) ? ssa_rep->num_uses : 0; in GetDalvikDisassembly()
1235 uses = ssa_rep->num_uses; in GetDalvikDisassembly()
1463 info->num_arg_words = mir->ssa_rep->num_uses; in NewMemCallInfo()
/art/compiler/dex/portable/
Dmir_to_gbc.cc1575 ::llvm::PHINode* phi = irb_->CreatePHI(phi_type, mir->ssa_rep->num_uses); in HandlePhiNodes()
1576 for (int i = 0; i < mir->ssa_rep->num_uses; i++) { in HandlePhiNodes()
/art/compiler/dex/quick/arm64/
Dint_arm64.cc192 if (mir->ssa_rep->num_uses == 1) { in GenSelect()
/art/compiler/dex/quick/arm/
Dint_arm.cc239 if (mir->ssa_rep->num_uses == 1) { in GenSelect()
/art/compiler/dex/quick/x86/
Dint_x86.cc280 const bool is_constant_case = (mir->ssa_rep->num_uses == 1); in GenSelect()