[enco] Remove unused make_sequence_map (#1717)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 2 Oct 2018 04:32:17 +0000 (13:32 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 2 Oct 2018 04:32:17 +0000 (13:32 +0900)
make_sequence_map is no longer used as coco IR now provides InstrIndex
and BlockIndex.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/Transforms/Optimizations.cpp

index 6331978..6b86a06 100644 (file)
@@ -122,24 +122,6 @@ bool hoistable(const coco::Shuffle *shuffle)
   return true;
 }
 
-// TODO Remove unused method
-std::map<coco::Instr *, uint32_t> make_sequence_map(const coco::Module *m)
-{
-  std::map<coco::Instr *, uint32_t> 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)