refactoring, rm the codes for merge alloc nodes