We often hit issues in SLPVectorizer, like miscompiles. Adding a DEBUG_COUNTER to be able bisect over individual vectorization changes (as opposed to the entire pass running on a function) might be helpful with IR diffs to show miscompiles. DSE example
@alexey-bataev