Skip to content

Commit

Permalink
[onert] Remove PermutationOperationPass
Browse files Browse the repository at this point in the history
This commit removes PermutationOperationPass.
This pass is used for broadcasting opeartion on different layout.
But this pass is not required if frontend and backend layout is always same.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Jul 31, 2024
1 parent a157c95 commit eaff07a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 351 deletions.
2 changes: 0 additions & 2 deletions runtime/onert/core/src/compiler/LoweredGraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "pass/PassRunner.h"
#include "pass/PermutationEliminationPass.h"
#include "pass/PermutationInsertionPass.h"
#include "pass/PermutationOperationPass.h"
#include "../dumper/text/GraphDumper.h"
#include "../ir/verifier/Verifier.h"

Expand Down Expand Up @@ -90,7 +89,6 @@ void LoweredGraph::lowerGraph(const CompilerOptions &options)
pass::PassRunner{}
.append(std::make_unique<pass::ConstantInsertionPass>(*this))
.append(std::make_unique<pass::ConstantLoweringPass>(*this))
.append(std::make_unique<pass::PermutationOperationPass>(*this))
.append(std::make_unique<pass::PermutationInsertionPass>(*this))
.run();

Expand Down
282 changes: 0 additions & 282 deletions runtime/onert/core/src/compiler/pass/PermutationOperationPass.cc

This file was deleted.

65 changes: 0 additions & 65 deletions runtime/onert/core/src/compiler/pass/PermutationOperationPass.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "../pass/PassRunner.h"
#include "../pass/PermutationEliminationPass.h"
#include "../pass/PermutationInsertionPass.h"
#include "../pass/PermutationOperationPass.h"
#include "../../backend/builtin/Config.h"
#include "../../dumper/text/GraphDumper.h"
#include "../../ir/verifier/Verifier.h"
Expand Down Expand Up @@ -102,7 +101,6 @@ void LoweredTrainableGraph::lowerGraph(const CompilerOptions &options)
.append(std::make_unique<compiler::pass::ConstantInsertionPass>(*this))
.append(std::make_unique<compiler::train::pass::TrainableConstantInsertionPass>(*this))
.append(std::make_unique<compiler::pass::ConstantLoweringPass>(*this))
.append(std::make_unique<compiler::pass::PermutationOperationPass>(*this))
.append(std::make_unique<compiler::pass::PermutationInsertionPass>(*this))
.run();

Expand Down

0 comments on commit eaff07a

Please sign in to comment.