LSV: Fix incorrectly increasing alignment
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Sep 2016 22:20:14 +0000 (22:20 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Sep 2016 22:20:14 +0000 (22:20 +0000)
commit950a82047bccac3afe109be8763b8e337c6b35f6
treee56f4d78e95235cd687a2333cc4fa261ff8def85
parentb4d0521c925eb8d77f6e339952d772e8c7c55033
LSV: Fix incorrectly increasing alignment

If the unaligned access has a dynamic offset, it may be odd which
would make the adjusted alignment incorrect to use.

llvm-svn: 281110
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/adjust-alloca-alignment.ll [new file with mode: 0644]