[RegisterCoalescer] Fix incorrect VNInfo deletion condition in pruneSubRegValues (#195023)
Fixes https://github.com/llvm/llvm-project/issues/156249
Guard markUnused in subrange pruning so that only VNInfos defined at the
COPY being
erased are marked unused, preventing incorrect removal of still-live
values in subregister/lane-based intervals.
---------
Co-authored-by: Matt Arsenault <arsenm2@gmail.com>