Home
last modified time | relevance | path

Searched refs:branch_insn (Results 1 – 2 of 2) sorted by relevance

/frameworks/libs/binary_translation/backend/common/
Dmachine_ir_opt.cc57 const PseudoBranch* branch_insn = static_cast<const PseudoBranch*>(last_insn); in RemoveForwarderBlocks() local
58 forwarder_map[machine_bb->id()] = branch_insn->then_bb(); in RemoveForwarderBlocks()
97 PseudoBranch* branch_insn = static_cast<PseudoBranch*>(last_insn); in RemoveForwarderBlocks() local
98 if (auto* new_dest = forwarder_map[branch_insn->then_bb()->id()]) { in RemoveForwarderBlocks()
99 branch_insn->set_then_bb(new_dest); in RemoveForwarderBlocks()
102 PseudoCondBranch* branch_insn = static_cast<PseudoCondBranch*>(last_insn); in RemoveForwarderBlocks() local
103 if (auto* new_then_bb = forwarder_map[branch_insn->then_bb()->id()]) { in RemoveForwarderBlocks()
104 branch_insn->set_then_bb(new_then_bb); in RemoveForwarderBlocks()
106 if (auto* new_else_bb = forwarder_map[branch_insn->else_bb()->id()]) { in RemoveForwarderBlocks()
107 branch_insn->set_else_bb(new_else_bb); in RemoveForwarderBlocks()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend_tests.cc70 auto* branch_insn = entry_bb->insn_list().back(); in FindEntrySuccessor() local
71 CHECK_EQ(branch_insn->opcode(), kMachineOpPseudoBranch); in FindEntrySuccessor()
72 return static_cast<PseudoBranch*>(branch_insn)->then_bb(); in FindEntrySuccessor()
142 auto* branch_insn = preloop_bb->insn_list().back(); in TEST() local
143 ASSERT_EQ(branch_insn->opcode(), kMachineOpPseudoBranch); in TEST()
144 auto* loop_bb = static_cast<PseudoBranch*>(branch_insn)->then_bb(); in TEST()
147 branch_insn = loop_bb->insn_list().back(); in TEST()
148 ASSERT_EQ(branch_insn->opcode(), kMachineOpPseudoCondBranch); in TEST()
149 auto* signal_exit_bb = static_cast<PseudoCondBranch*>(branch_insn)->then_bb(); in TEST()
150 branch_insn = signal_exit_bb->insn_list().back(); in TEST()
[all …]