[SLP]Fix erasing scalars used by narrowed reduction chain instructions
Narrowed reduction chain instructions may use non-root tree scalars;
clear such uses before erasing the scalars.
Fixes https://github.com/llvm/llvm-project/pull/216062#issuecomment-5381262165
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/218174