Project - Stage 3: Tidy & Wrap
Project - Stage 3: Tidy & Wrap In Stage 2, I created a Pass that determines whether the function should be pruned or not by comparing the cloned function and the original function's basic block and Gimple code in each basic block. This works fine when there is only one cloned function. In Stage 3, I am going to cloned more than one function to see if it can apply to all the functions. My Pass is below: #include "config.h" #include "system.h" #include "coretypes.h" #include "tree.h" #include "tree-pass.h" #include "cgraph.h" #include "function.h" #include "basic-block.h" #include "gimple.h" #include "gimple-iterator.h" #include "gimple-pretty-print.h" #include "cfg.h" #include <string> #include <vector> #include <map> namespace{ const pass_data pass_data_project = { GIMPLE_PASS, /* type */ "pass_project", /* na...