From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Tue, 2 Oct 2018 04:32:17 +0000 (+0900) Subject: [enco] Remove unused make_sequence_map (#1717) X-Git-Tag: nncc_backup~1653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb897cf375ae1ab3c25eca622b42d0a2a549a9fe;p=platform%2Fcore%2Fml%2Fnnfw.git [enco] Remove unused make_sequence_map (#1717) make_sequence_map is no longer used as coco IR now provides InstrIndex and BlockIndex. Signed-off-by: Jonghyun Park --- diff --git a/contrib/enco/core/src/Transforms/Optimizations.cpp b/contrib/enco/core/src/Transforms/Optimizations.cpp index 6331978..6b86a06 100644 --- a/contrib/enco/core/src/Transforms/Optimizations.cpp +++ b/contrib/enco/core/src/Transforms/Optimizations.cpp @@ -122,24 +122,6 @@ bool hoistable(const coco::Shuffle *shuffle) return true; } -// TODO Remove unused method -std::map make_sequence_map(const coco::Module *m) -{ - std::map res; - - uint32_t pos = 0; - - for (auto B = m->block()->head(); B; B = B->next()) - { - for (auto I = B->instr()->head(); I; I = I->next()) - { - res[I] = pos++; - } - } - - return res; -} - bool complete(const coco::Shuffle *s) { return s->range().size() == s->into()->size(); } bool compatible(const coco::Shuffle *s1, const coco::Shuffle *s2)