[VectorCombine] Simplify to scalar store if only one element updated
authorQiu Chaofan <qiucofan@cn.ibm.com>
Sat, 8 May 2021 10:13:05 +0000 (18:13 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Sat, 8 May 2021 10:14:51 +0000 (18:14 +0800)
commit2db4979c0fe05eac82ca770516057b7b9c4433e3
tree94c00860ab723c2c65fffe158fb88c0acc28086f
parente2a77644817fed9eb5a91d9e6cf4bc0c175f70e1
[VectorCombine] Simplify to scalar store if only one element updated

This patch simplifies load-insertelt-store pattern into
getelementptr-store.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D98240
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
llvm/test/CodeGen/AMDGPU/opt-pipeline.ll
llvm/test/Other/opt-LTO-pipeline.ll
llvm/test/Transforms/InstCombine/load-insert-store.ll [deleted file]
llvm/test/Transforms/VectorCombine/load-insert-store.ll [new file with mode: 0644]