Description[Interpreter] Templatize AccumulatorUsage and OperandType for bytecode creation.
Templatizes the AccumulatorUsage and OperandType for BytecodeNode creation and
BytecodeRegisterOptimizer::PrepareForBytecode. This allows the compiler to
statically know whether the bytecode being created accesses the accumulator
and what operand types need scaling, avoiding runtime checks in the code.
Also removes BytecodeNode::set_bytecode methods.
Committed: https://crrev.com/e27b348d1a3258adbbba257c92d6bf31c6c5bf55
Cr-Commit-Position: refs/heads/master@{#41706}
Patch Set 1 #Patch Set 2 #Patch Set 3 : Add unittest #Patch Set 4 : Rebase #
Total comments: 6
Patch Set 5 : Move to named BytecodeNode creators #Patch Set 6 : Minor tweaks #
Total comments: 2
Patch Set 7 : Remove commented code and rebase #Messages
Total messages: 51 (42 generated)
|