&& to const & AND rm use_node_inputs chunseok/cov accepted/tizen/unified/20240131.064057 accepted/tizen/unified/20240131.064158 accepted/tizen/unified/20240131.064251
authorSanggyu Lee <takepencil@naver.com>
Mon, 8 Jan 2024 05:59:46 +0000 (14:59 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Mon, 8 Jan 2024 06:22:25 +0000 (15:22 +0900)
runtime/onert/backend/ruy/KernelGenerator.cc
runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc

index 735a948..e5f2dbd 100644 (file)
@@ -55,7 +55,7 @@ std::unique_ptr<exec::FunctionSequence> KernelGenerator::generate(ir::OperationI
   assert(_return_fn); // _return_fn must have been generated
   ret->append(std::move(_return_fn));
 
-  for (const auto &&ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs())
+  for (const auto &ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs())
   {
     auto portable_tensor = _tensor_reg->getPortableTensor(ind);
     if (portable_tensor)
index 1657c0c..11c2277 100644 (file)
@@ -87,8 +87,6 @@ void PermutationInsertionPass::callback(const ir::OperandIndex &index, ir::Opera
       const auto op_layout = op_li->layout();
       const backend::Backend *backend = op_li->backend();
       assert(backend);
-      const auto &use_node_inputs = operation.getInputs();
-      assert(use_node_inputs.contains(index));
 
       auto new_index = factor_to_index.at({backend, op_layout});
       if (index != new_index)