Project Stage 3
The final stage of this project was all about tying up loose ends and making sure that everything I worked on in Stage 2 was complete and functional. The main goal was to ensure the GCC custom pass could identify cloned functions, determine if they were fundamentally the same or different, and provide appropriate output in the diagnostic dump file. I worked on integrating it into GCC, testing it with both provided and custom test cases, and verifying its outputs. Integration and Enhancements After the initial setup and testing of the tree-ctyler pass in Stage 2, I ensured it was properly integrated into the GCC compilation process. This involved verifying the modifications made to Makefile.in , passes.def , and tree-pass.h . These changes ensured the pass was correctly registered and could be invoked during compilation. The pass was placed late in the compilation pipeline to ensure that all significant optimizations, such as vectorization, were completed before its execution. By ...