This is an archive of the discontinued LLVM Phabricator instance.

[X86] Assign i8/i16 to the stack for Win64 as well.
AbandonedPublic

Authored by mstorsjo on Mar 24 2018, 4:04 PM.

Details

Reviewers
rnk
craig.topper
Summary

This makes sure that a i8/i16 parameter after the 4th parameter gets assigned to the stack, instead of continuing matching in the generic CC_X86_64_C, after SVN r328386. (After that change, such a param would end up assigned to EDI.)

Diff Detail

Event Timeline

mstorsjo created this revision.Mar 24 2018, 4:04 PM
rnk added a comment.Mar 26 2018, 9:48 AM

This works for 64-bit, but I think the 32-bit side needs fixing. I think I will try to incorporate this into a re-land of rL328386 later today. Sorry for the breakage. :(

rnk added a comment.Mar 26 2018, 10:34 AM

Looks like 32-bit doesn't need to be fixed because of the way the delegation is arranged. In any case, I combined this with the re-land in D44846. PTAL

mstorsjo abandoned this revision.Mar 26 2018, 1:16 PM

Taken care of as part of D44846.