[PATCH] D12269: Add a pass to lift aggregate into allocas so SROA can get rid of them.

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 00:47:17 PDT 2015


deadalnix created this revision.
deadalnix added reviewers: hfinkel, majnemer, reames, joker.eph.
deadalnix added a subscriber: llvm-commits.

As per title. After various discussion, it seems that this may be a better approach than transforming them into scalar. The pass itself does not very much to optimize, but transform the IR is a way that subsequents passes, mainly SROA, can consume and optimize.

http://reviews.llvm.org/D12269

Files:
  include/llvm/InitializePasses.h
  include/llvm/Transforms/Scalar.h
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Scalar/AggregateLifter.cpp
  lib/Transforms/Scalar/CMakeLists.txt
  lib/Transforms/Scalar/Scalar.cpp
  test/Transforms/AggregateLifter/extractvalue.ll
  test/Transforms/AggregateLifter/store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12269.32921.patch
Type: text/x-patch
Size: 11004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150823/93951cae/attachment.bin>


More information about the llvm-commits mailing list