[PATCH] D90302: [llvm-reduce] Add reduction for special globals like llvm.used.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 05:22:40 PDT 2020
fhahn created this revision.
fhahn added reviewers: lebedev.ri, dblaikie, arsenm.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
fhahn requested review of this revision.
Herald added a subscriber: wdng.
This patch adds a reduction of 'special' globals that lead to further
reductions (e.g. alias or regular globals reduction) being less efficient
because there are special constraints on values referenced in those
special globals. For example, values in @llvm.used and
@llvm.compiler.used need to be named, so replacing all uses of an
alias/global with undef or a different unnamed constant results in
invalid IR.
More details:
https://llvm.org/docs/LangRef.html#intrinsic-global-variables
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90302
Files:
llvm/test/Reduce/remove-alias.ll
llvm/tools/llvm-reduce/CMakeLists.txt
llvm/tools/llvm-reduce/DeltaManager.h
llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp
llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90302.301249.patch
Type: text/x-patch
Size: 5171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201028/32f3c8ac/attachment.bin>
More information about the llvm-commits
mailing list