[PATCH] D123848: [RS4GC] Don't clone BDV if its inputs are not derived
Dmitry Makogon via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 15 01:52:10 PDT 2022
dmakogon created this revision.
dmakogon added reviewers: mkazantsev, reames, nikic, lebedev.ri, skatkov.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dmakogon requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch performs check if all the inputs of the BDV are base values themselves (i.e. not derived from some base)
If it's true for some BDV, we can avoid cloning it, because the clone would be identical to BDV (it may have different incoming values, because those may be cloned too).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123848
Files:
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
llvm/test/Transforms/RewriteStatepointsForGC/base-inference.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-10.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-14.ll
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-9.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123848.423047.patch
Type: text/x-patch
Size: 16613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220415/35a08e51/attachment-0001.bin>
More information about the llvm-commits
mailing list