This is an archive of the discontinued LLVM Phabricator instance.

[GlobalOpt] Don't remove inalloca from musttail-called functions
ClosedPublic

Authored by hans on Jul 7 2020, 5:54 AM.

Details

Summary

Otherwise the verifier complains about the mismatching function ABIs.

Diff Detail

Event Timeline

hans created this revision.Jul 7 2020, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2020, 5:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
hans added a comment.Jul 7 2020, 5:54 AM

Please take a look!

(We're hitting this in the Chromium browser / compiler test suite, https://crbug.com/1101286)

thakis accepted this revision.Jul 7 2020, 7:02 AM
This revision is now accepted and ready to land.Jul 7 2020, 7:02 AM
aeubanks accepted this revision.Jul 7 2020, 8:55 AM

LGTM
Ideally we could look remove musttail inalloca calls/parameters recursively

This revision was automatically updated to reflect the committed changes.