commit | 4a777e245da2e2dc748a94ba388cf01f9d1400ee | [log] [tgz] |
---|---|---|
author | Eli Friedman <efriedma@codeaurora.org> | Thu Aug 30 18:59:24 2018 +0000 |
committer | Eli Friedman <efriedma@codeaurora.org> | Thu Aug 30 18:59:24 2018 +0000 |
tree | 935ff958f6f51c11d8231ba13d6e3356a1b68c2a | |
parent | 3e316392762185df86f5f954e963b75720ce3b9a [diff] |
[SROA] Fix alignment for uses of PHI nodes. Splitting an alloca can decrease the alignment of GEPs into the partition. Normally, rewriting accounts for this, but the code was missing for uses of PHI nodes and select instructions. Fixes https://bugs.llvm.org/show_bug.cgi?id=38707 . Differential Revision: https://reviews.llvm.org/D51335 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341094 91177308-0d34-0410-b5e6-96231b3b80d8