&& 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 735a948f683a4ee62af45d6e479d59839e7765df..e5f2dbd399b740535d092f37738da0735195162c 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 1657c0c8fb20eed5150d98a3b88c3972f0f5d6c6..11c22778eb17d925d2fe154e66908490792d5076 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)