Lib/v3d/instr/OpItems.cpp
/**
 * Combination only possible if instructions not both add ALU or both mul ALU
 *
 * TODO Not used any more (20210614), check if should be removed
 */
Combination only possible if instructions not both add ALU or both mul ALU
TODO Not used any more (20210614), check if should be removed
Combination only possible if instructions not both add ALU or both mul ALU TODO Not used any more ( 20210614 ) check if should be removed
bool OpItems::valid_combine_pair(V3DLib::Instr const &instr, V3DLib::Instr const &next_instr, bool &do_converse) {
  if (uses_add_alu(instr) && uses_mul_alu(next_instr)) {
    do_converse = false;
    return true;
  }
  if (uses_mul_alu(instr) && uses_add_alu(next_instr)) {
    do_converse = true;
    return true;
  }
  return false;
}
bool OpItems :: valid_combine_pair ( V3DLib :: Instr const & instr , V3DLib :: Instr const & next_instr , bool & do_converse ) { if ( uses_add_alu ( instr ) && uses_mul_alu ( next_instr ) ) { do_converse = false ; return true ; } if ( uses_mul_alu ( instr ) && uses_add_alu ( next_instr ) ) { do_converse = true ; return true ; } return false ; }
Combination only possible if instructions not both add ALU or both mul ALU
 TODO Not used any more (20210614), check if should be removed
Combination only possible if instructions not both add ALU or both mul ALU TODO Not used any more ( 20210614 ) check if should be removed