[LSV] Use the original loads' names for the extractelement instructions.
authorJustin Lebar <jlebar@google.com>
Wed, 7 Sep 2016 15:49:48 +0000 (15:49 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 7 Sep 2016 15:49:48 +0000 (15:49 +0000)
commit3a5f40c19175390e3790867972820599060016de
tree70b9455538b4c653b641eca6de3e4af7b1202b83
parent0bf9a99c7dbbffb2ba9998c2b89010b5d4c9622a
[LSV] Use the original loads' names for the extractelement instructions.

Summary:
LSV replaces multiple adjacent loads with one vectorized load and a
bunch of extractelement instructions.  This patch makes the
extractelement instructions' names match those of the original loads,
for (hopefully) improved readability.

Reviewers: asbirlea, tstellarAMD

Subscribers: arsenm, mzolotukhin

Differential Revision: https://reviews.llvm.org/D23748

llvm-svn: 280818
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/merge-stores.ll
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/pointer-elements.ll