TEST_F(OptimizerTest, CFG7) { const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM(
Instruction::CONST_4 | 0 | 0,
Instruction::IF_EQ, 3, // Block number 1
Instruction::GOTO | 0x100, // Block number 2
Instruction::GOTO | 0xFF00); // Block number 3
const uint32_t dominators[] = {
kInvalidBlockId, 0, 1, 1,
kInvalidBlockId, // exit block is not dominated by any block due to the spin loop. 1, // block to avoid critical edge. 1// block to avoid critical edge.
};
TEST_F(OptimizerTest, CFG8) { const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM(
Instruction::CONST_4 | 0 | 0,
Instruction::IF_EQ, 3, // Block number 1
Instruction::GOTO | 0x200, // Block number 2
Instruction::GOTO | 0x100, // Block number 3
Instruction::GOTO | 0xFF00); // Block number 4
const uint32_t dominators[] = {
kInvalidBlockId, 0, 1, 1, 1,
kInvalidBlockId, // exit block is not dominated by any block due to the spin loop. 1// block to avoid critical edge.
};
TEST_F(OptimizerTest, CFG9) { const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM(
Instruction::CONST_4 | 0 | 0,
Instruction::IF_EQ, 3, // Block number 1
Instruction::GOTO | 0x200, // Block number 2
Instruction::GOTO | 0x100, // Block number 3
Instruction::GOTO | 0xFE00); // Block number 4
const uint32_t dominators[] = {
kInvalidBlockId, 0, 1, 1, 1,
kInvalidBlockId, // exit block is not dominated by any block due to the spin loop. 1// block to avoid critical edge.
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.