remove an unused function in profiling.cpp, adjust the order of instrumental instructions when PHI nodes are met