This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

hans created this revision.Jun 17 2020, 1:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2020, 1:56 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
bkramer accepted this revision.Jun 17 2020, 1:59 AM
bkramer added a subscriber: bkramer.

looks good

This revision is now accepted and ready to land.Jun 17 2020, 1:59 AM
This revision was automatically updated to reflect the committed changes.
yrouban added a subscriber: yrouban.