This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix epilogue insertion for indirect tail calls
ClosedPublic

Authored by tlively on Mar 21 2023, 2:47 PM.

Details

Summary

Previously epilogues were incorrectly inserted after indirect tail calls because
they did not have the isTerminator property. Add that property and test that
they get correct epilogues. To be safe, also add other properties that were
defined for direct tail calls.

Diff Detail

Event Timeline

tlively created this revision.Mar 21 2023, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 2:47 PM
Herald added subscribers: pmatos, asb, wingo and 5 others. · View Herald Transcript
tlively requested review of this revision.Mar 21 2023, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 2:47 PM
dschuff accepted this revision.Mar 21 2023, 3:00 PM
This revision is now accepted and ready to land.Mar 21 2023, 3:00 PM
aheejin accepted this revision.Mar 21 2023, 3:13 PM

Someone uploaded a CL fixing this a while ago (D142615), and not sure why they didn't land it. Anyway LGTM.

Someone uploaded a CL fixing this a while ago (D142615), and not sure why they didn't land it. Anyway LGTM.

Oh bummer, it would have saved me some time if that had landed. Oh well, I'll land this one.

This revision was landed with ongoing or failed builds.Mar 22 2023, 9:28 AM
This revision was automatically updated to reflect the committed changes.