This is an archive of the discontinued LLVM Phabricator instance.

[WPD] Update llvm.public.type.test after importing functions
ClosedPublic

Authored by tejohnson on May 10 2023, 4:12 PM.

Details

Summary

I noticed that we are converting llvm.public.type.test to regular
llvm.type.test too early, and thus not updating those in imported
functions. This would result in losing out on WPD opportunities. Move
the update to after function importing, and improve test to cover this
case.

Diff Detail

Event Timeline

tejohnson created this revision.May 10 2023, 4:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 4:12 PM
tejohnson requested review of this revision.May 10 2023, 4:12 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 10 2023, 4:12 PM
aeubanks accepted this revision.May 10 2023, 7:24 PM
aeubanks added inline comments.
llvm/test/ThinLTO/X86/public-type-test.ll
35

should this be checked twice for both public type tests?

This revision is now accepted and ready to land.May 10 2023, 7:24 PM
tejohnson marked an inline comment as done.May 11 2023, 9:10 AM
tejohnson added inline comments.
llvm/test/ThinLTO/X86/public-type-test.ll
35

Yes, fixed.

tejohnson updated this revision to Diff 521340.May 11 2023, 9:10 AM
tejohnson marked an inline comment as done.

Address comment

This revision was landed with ongoing or failed builds.May 11 2023, 9:10 AM
This revision was automatically updated to reflect the committed changes.