[SLP] Check candidates instead of instructionsstate for reduction type in revec mode
Better to ceheck the first candidate instead of InstructionsState, since
it might be non-valid for constants.
Fixes https://github.com/llvm/llvm-project/pull/197291#issuecomment-4435105325
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/197335