[PATCH] D134419: Patch to fix cloning block addresses correctly in CloneModule
Spica via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 01:51:50 PDT 2022
Hatsunespica created this revision.
Hatsunespica added a reviewer: regehr.
Hatsunespica created this object with edit policy "Subscribers".
Herald added a subscriber: hiraditya.
Herald added a project: All.
Hatsunespica requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Current CloneModule failed to clone block addresses, which leads to crashes in optimizing cloned modules.
https://github.com/llvm/llvm-project/issues/55991
As a result, we should create empty basic blocks inside functions referred by block addresses, and fill them with instructions later.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134419
Files:
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Transforms/Utils/CloneFunction.cpp
llvm/lib/Transforms/Utils/CloneModule.cpp
llvm/unittests/Transforms/Utils/CloningTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134419.462109.patch
Type: text/x-patch
Size: 7525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/085b6c04/attachment.bin>
More information about the llvm-commits
mailing list