Preserve $specify[23] cells
authorClifford Wolf <clifford@clifford.at>
Mon, 22 Apr 2019 08:03:18 +0000 (10:03 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 23 Apr 2019 19:36:59 +0000 (21:36 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/opt/opt_clean.cc

index c38e9df5e7db7fead4804f1bf8b0cecc90bc0a23..3f38dd58003acefa6e6ee0a1f980ee47ed66ac8f 100644 (file)
@@ -64,7 +64,7 @@ struct keep_cache_t
 
        bool query(Cell *cell)
        {
-               if (cell->type.in("$memwr", "$meminit", "$assert", "$assume", "$live", "$fair", "$cover"))
+               if (cell->type.in("$memwr", "$meminit", "$assert", "$assume", "$live", "$fair", "$cover", "$specify2", "$specify3"))
                        return true;
 
                if (cell->has_keep_attr())