[SLP] use 'match' for binop/select; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 2 Dec 2020 14:00:49 +0000 (09:00 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 2 Dec 2020 14:04:08 +0000 (09:04 -0500)
commit56fd29e93bd133d354e7e639bca1c025162e91ac
treed8f67dd477ef2d89716c7f21ab32e7b2ba958396
parent240dd92432ebbfbf24ef85779f2cdf93e6ddf605
[SLP] use 'match' for binop/select; NFC

This might be a small improvement in readability, but the
real motivation is to make it easier to adapt the code to
deal with intrinsics like 'maxnum' and/or integer min/max.

There is potentially help in doing that with D92086, but
we might also just add specialized wrappers here to deal
with the expected patterns.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp