[all-commits] [llvm/llvm-project] 46bb4b: [X86][fastcall][vectorcall] Move capability check ...

Phoebe Wang via All-commits all-commits at lists.llvm.org
Mon Sep 19 18:37:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46bb4b99ae9f7b043c58d0b17df031bd02ccfd01
      https://github.com/llvm/llvm-project/commit/46bb4b99ae9f7b043c58d0b17df031bd02ccfd01
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGen/mangle-windows.c
    M clang/test/CodeGen/regcall.c
    M clang/test/CodeGen/stdcall-fastcall.c
    M clang/test/CodeGen/vectorcall.c

  Log Message:
  -----------
  [X86][fastcall][vectorcall] Move capability check before free register update

When passing arguments with `__fastcall` or `__vectorcall` in 32-bit MSVC, the following arguments have chance to be passed by register if the current one failed. `__regcall` from ICC is on the contrary: https://godbolt.org/z/4MPbzhaMG
All the three calling conversions are not supported in GCC.

Fixes: #57737

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D133920




More information about the All-commits mailing list