[PATCH] D51335: [SROA] Fix alignment for uses of PHI nodes.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 18:23:13 PDT 2018


efriedma created this revision.
efriedma added reviewers: chandlerc, davide, inouehrs.

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 .


Repository:
  rL LLVM

https://reviews.llvm.org/D51335

Files:
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/phi-and-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51335.162788.patch
Type: text/x-patch
Size: 3749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/8af21ce6/attachment.bin>


More information about the llvm-commits mailing list