[PATCH] Add basic support for removal of load that are fed by a store of an aggregate

Björn Steinbrink bsteinbr at gmail.com
Fri Jan 2 13:27:59 PST 2015


If we have a simple load through a GEP that is fed by a store of an
aggregate, we can use the GEP indices to walk the stored aggregate and
extract the appropriate value to replace the load.

http://reviews.llvm.org/D6829

Files:
  include/llvm/Analysis/Loads.h
  lib/Analysis/Loads.cpp
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/load-from-fca.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6829.17764.patch
Type: text/x-patch
Size: 6589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150102/3bfb2e3e/attachment.bin>


More information about the llvm-commits mailing list