This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Avoid unused function imports in PIC mode
ClosedPublic

Authored by sbc100 on Aug 18 2021, 4:59 PM.

Details

Summary

In PIC mode we import function address via GOT.mem imports but for
direct function calls we still import the first class function.
However, if the function is never directly called we can avoid the first
class import completely.

Diff Detail

Event Timeline

sbc100 created this revision.Aug 18 2021, 4:59 PM
sbc100 requested review of this revision.Aug 18 2021, 4:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2021, 4:59 PM
sbc100 updated this revision to Diff 367366.Aug 18 2021, 5:20 PM
  • fix bug
dschuff accepted this revision.Aug 18 2021, 5:44 PM
This revision is now accepted and ready to land.Aug 18 2021, 5:44 PM
This revision was landed with ongoing or failed builds.Aug 18 2021, 7:31 PM
This revision was automatically updated to reflect the committed changes.