[PATCH] D61911: [GlobalOpt] Allow dead struct fields in SRA with non constant offset.

Christian Bruel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 06:13:05 PDT 2019


chrib updated this revision to Diff 206425.
chrib edited the summary of this revision.
chrib added a comment.

This fix the regression with multiple GEP arrays by allowing SRA for GEP ConstantExpr even if it might use an instruction containing indirect offsets access. The GlobalValue fields can be scalarized if they have StructType and not ArrayType with possible out-of-bound.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61911/new/

https://reviews.llvm.org/D61911

Files:
  lib/Transforms/IPO/GlobalOpt.cpp
  test/Transforms/GlobalOpt/globalsra-ptr.ll
  test/Transforms/GlobalOpt/globalsra-struct.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61911.206425.patch
Type: text/x-patch
Size: 5746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190625/5f55bf02/attachment.bin>


More information about the llvm-commits mailing list