[IRBuilder][VectorCombine] make and use a convenience function for unary shuffle...
authorSanjay Patel <spatel@rotateright.com>
Mon, 21 Sep 2020 17:27:40 +0000 (13:27 -0400)
committerSanjay Patel <spatel@rotateright.com>
Mon, 21 Sep 2020 17:47:01 +0000 (13:47 -0400)
commit1e6b240d7d336a36856268db5349468560e28a0e
treecc916917aa4e3245eb5bbda6032baca33b6a4e05
parent03111e5e7a8690300966a39f0aa2e4f2b4ec919a
[IRBuilder][VectorCombine] make and use a convenience function for unary shuffle; NFC

This reduces code duplication for common construct.
Follow-ups can use this in SLP, LoopVectorizer, and other passes.
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/Transforms/Vectorize/VectorCombine.cpp