[SLP]Pack repeated freezes before the vector freeze
The lanes of a vector freeze are frozen independently, so a freeze
repeated in several lanes may get different values. Do not keep the
original lanes with duplicates for freeze nodes, pack the unique values
and reshuffle them.
Pull-request: https://github.com/llvm/llvm-project/pull/242377