[X86][MS] Fix the wrong alignment of vector variable arguments on Win32
authorPhoebe Wang <pengfei.wang@intel.com>
Sun, 13 Feb 2022 01:37:36 +0000 (09:37 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Sun, 13 Feb 2022 02:23:18 +0000 (10:23 +0800)
commit2aa732a9183b8fa23c103c169a5da0e90cc67cf5
treeea19a0f11c324424db2d1f18aed51d351e28b266
parentd050010ea2ece9a1a06643af2991389776bce645
[X86][MS] Fix the wrong alignment of vector variable arguments on Win32

D108887 fixed alignment mismatch by changing the caller's alignment in
ABI. However, we found some cases that still assume the alignment is
vector size. This patch fixes them to avoid the runtime crash.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D114536
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vaargs-win32.ll
llvm/test/CodeGen/X86/win32-spill-xmm.ll