[InstCombine] allow vector splat matching for bitwise logic folds
authorSanjay Patel <spatel@rotateright.com>
Fri, 29 Oct 2021 18:21:36 +0000 (14:21 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 29 Oct 2021 18:22:50 +0000 (14:22 -0400)
commitd0e9879d9627c82a9c1b97cdf0d8da8829905574
treeaf28801280c61d55f9860700cbf1fcc0bda70818
parentae8984111d8316cb33992deca34d49704344069a
[InstCombine] allow vector splat matching for bitwise logic folds

These transforms are also likely missing a one-use check,
but that's another patch.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/and-or.ll
llvm/test/Transforms/InstCombine/or-xor.ll