llvm-project
9d20e75c - [VectorCombine] Fix crash in foldShuffleOfSelects for single-element shuffle result (#185713)

Commit
1 day ago
[VectorCombine] Fix crash in foldShuffleOfSelects for single-element shuffle result (#185713) In foldShuffleOfSelects, if the shuffle result has a single element, the resulting type may be scalar rather than a vector. The later code in foldShuffleOfSelects assumes the result is a vector and performs cast< FixedVectorType >, which triggers an assertion. Fixes #183625
Parents
Loading