[NFC][DAG] `combineShuffleToVectorExtend()`: check that the type is legal first
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 25 Dec 2022 18:20:43 +0000 (21:20 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 25 Dec 2022 22:03:59 +0000 (01:03 +0300)
commit6aa735938782bbd35ba68fa5f3f04b717da674c7
tree40b28696070d2de61bb037686516080d181ba964
parent0b0224bc88af60c91fe3e4721013b99269efa5b2
[NFC][DAG] `combineShuffleToVectorExtend()`: check that the type is legal first

There is no point in doing any of the potentially-costly matching
if we will inevitably give up anyway.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp