This is an archive of the discontinued LLVM Phabricator instance.

[TailDuplicator] allow for callbr
Changes PlannedPublic

Authored by nickdesaulniers on Dec 4 2020, 5:10 PM.

Details

Reviewers
jyknight
void
Summary

Follow up to https://reviews.llvm.org/D88823; fixes a TODO from the
clang-11 release by leveraging findPHICopyInsertPoint(), which has been
moved to be more accessible outside of llvm/lib/CodeGen/.

Diff Detail

Unit TestsFailed

Event Timeline

nickdesaulniers created this revision.Dec 4 2020, 5:10 PM
nickdesaulniers requested review of this revision.Dec 4 2020, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 5:10 PM
nickdesaulniers added inline comments.Dec 4 2020, 5:16 PM
llvm/test/CodeGen/X86/tail-dup-asm-goto.ll
21

hmmm...this doesn't look quite right to me, shouldn't the copy have occurred BEFORE the INLINEASM_BR...?

nickdesaulniers planned changes to this revision.Dec 4 2020, 5:35 PM

I suspect that duplicateInstruction is not updating isInlineAsmBrIndirectTarget correctly when moving the INLINEASM_BR, but will have to verify.