[enco] Comment for dead object elimination (#2819)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Fri, 11 Jan 2019 08:28:54 +0000 (17:28 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 11 Jan 2019 08:28:54 +0000 (17:28 +0900)
This will add a comment for getting dead objects

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
contrib/enco/core/src/Transforms/DeadObjectElimination.cpp

index fc77d9b..df8cc62 100644 (file)
@@ -38,6 +38,7 @@ std::set<coco::Object *> dead_objects(const coco::Module *m)
     }
     else
     {
+      // NOTE Just in case if there are Objects not related to Bags
       if (obj->uses()->size() == 0)
       {
         res.insert(obj);