[NFC][DAGCombiner] Extract `canCombineShuffleToAnyVectorExtendInReg()` helper
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 25 Dec 2022 21:03:45 +0000 (00:03 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 25 Dec 2022 22:04:47 +0000 (01:04 +0300)
commit2999c45050f93c1d7753bf9c0f353f46cc90bbbb
tree4fac0cccbbb89396dfe3c6cc402eb84e91002055
parent6aa735938782bbd35ba68fa5f3f04b717da674c7
[NFC][DAGCombiner] Extract `canCombineShuffleToAnyVectorExtendInReg()` helper

Adding zero-ext support isn't as straight-forward, and it's easier
to to so in a new function, but this helper is useful there.
This does not change any existing behaviour.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp