[InstCombine] Remove redundant splats in InstCombineVectorOps
authorMatt Devereau <matthew.devereau@arm.com>
Wed, 12 Oct 2022 09:20:05 +0000 (09:20 +0000)
committerMatt Devereau <matthew.devereau@arm.com>
Wed, 2 Nov 2022 11:57:05 +0000 (11:57 +0000)
commit957eed0b1af2cb88edafe1ff2643a38165c67a40
tree45de0933a2a0ad9334ea1508f360f5b6af5119e2
parent093200fd00ff5d3a615410ce66d666467629a10b
[InstCombine] Remove redundant splats in InstCombineVectorOps

Splatting the first vector element of the result of a BinOp, where any of the
BinOp's operands are the result of a first vector element splat can be simplified to
splatting the first vector element of the result of the BinOp

Differential Revision: https://reviews.llvm.org/D135876
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/shuffle-binop.ll
llvm/test/Transforms/VectorCombine/AArch64/insert-shuffle-binop.ll [deleted file]