Update edge weights properly when merging blocks in if-conversion.