OSDN Git Service

[LSV] Don't assume that loads/stores appear in address order in the BB.
authorJustin Lebar <jlebar@google.com>
Wed, 20 Jul 2016 00:55:12 +0000 (00:55 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 20 Jul 2016 00:55:12 +0000 (00:55 +0000)
commitdbf6ad39ae772b1675355a5ea8bb8107da924294
tree6d3b5c4d41a95d3c33bd3ff40e93c35366972301
parent30f6cf738e5bc0071b1f8256c9f81a4afab989fb
[LSV] Don't assume that loads/stores appear in address order in the BB.

Summary:
getVectorizablePrefix previously didn't work properly in the face of
aliasing loads/stores.  It unwittingly assumed that the loads/stores
appeared in the BB in address order.  If they didn't, it would do the
wrong thing.

Reviewers: asbirlea, tstellarAMD

Subscribers: arsenm, llvm-commits, mzolotukhin

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
test/Transforms/LoadStoreVectorizer/AMDGPU/insertion-point.ll