This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix using wrong calling convention for callees
ClosedPublic

Authored by arsenm on Feb 8 2021, 3:09 PM.

Details

Reviewers
aemerson
paquette
Summary

This was taking the calling convention from the parent function,
instead of the callee. Avoids regressions in a future patch when the
caller and callee have different type breakdowns.

For some reason AArch64's lowerFormalArguments seems to intentionally
ignore the parent isVarArg.

Diff Detail

Event Timeline

arsenm created this revision.Feb 8 2021, 3:09 PM
arsenm requested review of this revision.Feb 8 2021, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2021, 3:09 PM
Herald added a subscriber: wdng. · View Herald Transcript
aemerson accepted this revision.Feb 9 2021, 10:14 AM

For some reason AArch64's lowerFormalArguments seems to intentionally ignore the parent isVarArg.

We seem to use the IsFixed flag which lets us get away with this I think.

This revision is now accepted and ready to land.Feb 9 2021, 10:14 AM