keep track of merge values in ir