This is an archive of the discontinued LLVM Phabricator instance.

Patch to fix cloning block addresses correctly in CloneModule
Needs ReviewPublic

Authored by Hatsunespica on Sep 22 2022, 1:50 AM.

Details

Summary

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.

Diff Detail

Event Timeline

Hatsunespica created this revision.Sep 22 2022, 1:50 AM
Hatsunespica created this object with edit policy "Subscribers".
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 1:50 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Hatsunespica requested review of this revision.Sep 22 2022, 1:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 1:50 AM