• Shucai Xiao's avatar
    Improve print ins (#1096) · b3b44f5d
    Shucai Xiao authored
    The module::debug_print(ins) is very slow, which makes the trave_eval==1/2 very slow. The reason is printing an ins involves search the whole module to get the instruction, the print it.  This change is to fix that by calling module::print() to get names of all instructions of a program, then print the instruction by getting its name from a hash map.
    b3b44f5d
print_graph_test.cpp 1.53 KB