mergeBasicBlocksSameFunctions added, doing merge only for basic blocks in the same function