Skip to content

Commit

Permalink
graph: backend: compiler: core: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv authored and vpirogov committed Jul 25, 2024
1 parent 8733660 commit 09801f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ static bool check_repartition(const mixed_parti_t::ptr &parti) {
if (parti->is_parti_out(out)) check_parti_out_tptr(out);
}
// 2. check reorder
if (auto reo = op->isa<reorder_op_t>()) {
if (op->isa<reorder_op_t>()) {
if (!op->dyn_cast<reorder_op_t>()->support_output_loop()
|| op->get_inputs()[0]->uses_.size() == 1) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ const_ir_module_ptr tensor_inplace_t::operator()(const_ir_module_ptr f) {
arg_id++) {
auto &arg_in_decl = funct->params_[arg_id];
auto &arg_in_def = func_def->params_.at(arg_id);
if (auto alias_id
= alias_info::get_alias_info(*arg_in_decl)) {
if (alias_info::get_alias_info(*arg_in_decl)) {
// sync the alias info
arg_in_def->attr()[attr_keys::pointer_alias]
= arg_in_decl->attr_->get_any(
Expand Down

0 comments on commit 09801f5

Please sign in to comment.