The invoke instruction can have profile metadata with branch_weights, which does not make sense for a call instruction and will be rejected by the verifier.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D81996
[IR] Don't copy profile metadata in createCallMatchingInvoke() ClosedPublic Authored by hans on Jun 17 2020, 1:56 AM.
Details Summary The invoke instruction can have profile metadata with branch_weights, which does not make sense for a call instruction and will be rejected by the verifier.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 17 2020, 1:59 AM Closed by commit rG16ad6eeb94ff: [IR] Don't copy profile metadata in createCallMatchingInvoke() (authored by hans). · Explain WhyJun 17 2020, 2:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 271300 llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll
|