[PATCH] D16057: [SROA] Fix for PR25873: Pre-splitting should always preserve the partition structure.

Andrea Di Biagio via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 04:33:33 PST 2016


andreadb updated this revision to Diff 46768.
andreadb added a comment.

Patch updated based on Chandler's review comments.

I have added a map from stores to slices. That map is populated when we initially scan through the slices of the alloca in 'presplitLoadsAndStores'.
I have also simplified the code adding an early continue as suggested.

Please let me know if this is ok to commit.

Thanks!
Andrea


http://reviews.llvm.org/D16057

Files:
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/basictest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16057.46768.patch
Type: text/x-patch
Size: 4725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160203/3206beaa/attachment.bin>


More information about the llvm-commits mailing list