ONE - On-device Neural Engine
|
Pass to perform CSE (Common Sub-expression Elimination) More...
#include <CommonSubExpressionEliminationPass.h>
Public Member Functions | |
virtual const char * | name (void) const |
bool | run (loco::Graph *graph) |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Pass to perform CSE (Common Sub-expression Elimination)
Definition at line 28 of file CommonSubExpressionEliminationPass.h.
|
inlinevirtual |
Reimplemented from logo::Pass.
Definition at line 31 of file CommonSubExpressionEliminationPass.h.
|
virtual |
Run the pass.
Implements logo::Pass.
Definition at line 52 of file CommonSubExpressionEliminationPass.cpp.
References loco::active_nodes(), luci::pass::Expression::build(), luci::pass::ExpressionCache::get(), loco::output_nodes(), luci::pass::ExpressionCache::put(), loco::replace(), and loco::Subst< SubstQualifier::Default >::with().
Referenced by package.infer.session::inference().