[VectorCombine] refactor matching code to reduce duplication; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 16:49:11 +0000 (11:49 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 17:06:51 +0000 (12:06 -0500)
commitfc4455891c00bfa16c85d0cebe6158fafe11667d
treecc1b398e0dc7089caa148d8106525dcc524f7426
parent23444edf30ba00ccefa3a582ac7ddc29774e9da5
[VectorCombine] refactor matching code to reduce duplication; NFC

cmp/binop were already diverging even though they are largely
the same logic.
llvm/lib/Transforms/Vectorize/VectorCombine.cpp