[PATCH] D57643: [X86] Fix bug in vectorcall calling convention
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 4 14:12:33 PST 2019
rnk added inline comments.
================
Comment at: lib/Target/X86/X86CallingConv.cpp:165
// At that case for each argument a shadow stack of 8 bytes is allocated.
- if (Reg == X86::XMM4 || Reg == X86::XMM5)
+ if (Reg == X86::XMM4 || Reg == X86::XMM5 ||
+ Reg == X86::YMM4 || Reg == X86::YMM5 ||
----------------
One way to deal with this would be to find MCRegisterInfo and ask if this is a sub/super register of XMM0 so we don't have to enumerate all the X,Y,Z cases and inevitable W someday in the future. But I'd accept this fix as is because I'm not sure how to get the register info data here.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57643/new/
https://reviews.llvm.org/D57643
More information about the llvm-commits
mailing list