[PATCH] D144476: [GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 05:23:35 PST 2023


fhahn created this revision.
fhahn added reviewers: aeubanks, nikic, kubamracek.
Herald added subscribers: ormris, StephenFan, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

If all stores only store the initializer value of a global, consider it
as not stored in the heuristic. GlobalOpt will remove such stores later
on.

Depends on D129857 <https://reviews.llvm.org/D129857>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144476

Files:
  llvm/lib/Transforms/IPO/GlobalOpt.cpp
  llvm/test/Transforms/GlobalOpt/sra-many-stores.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144476.499122.patch
Type: text/x-patch
Size: 7847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230221/56d24dbc/attachment.bin>


More information about the llvm-commits mailing list