[all-commits] [llvm/llvm-project] b5b0a2: [X86][GlobalISel] Support StructRet arguments (#96...

Evgenii Kudriashov via All-commits all-commits at lists.llvm.org
Tue Jul 2 15:57:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5b0a22ecc58c9950fb4b1cd3532e75f42155978
      https://github.com/llvm/llvm-project/commit/b5b0a22ecc58c9950fb4b1cd3532e75f42155978
  Author: Evgenii Kudriashov <evgenii.kudriashov at intel.com>
  Date:   2024-07-03 (Wed, 03 Jul 2024)

  Changed paths:
    M llvm/lib/Target/X86/GISel/X86CallLowering.cpp
    M llvm/test/CodeGen/X86/GlobalISel/irtranslator-callingconv.ll
    M llvm/test/CodeGen/X86/isel-buildvector-sse.ll
    M llvm/test/CodeGen/X86/isel-buildvector-sse2.ll

  Log Message:
  -----------
  [X86][GlobalISel] Support StructRet arguments (#96629)

We follow SelectionDAG and FastISel manner: set a register during formal
arguments lowering and use this register to insert a copy of StructRet
argument to RAX register during return lowering.

Also add RAX register to RET instruction to fix a difference between
GlobalISel and SelectionDAG, when the copy instruction could be
deleted.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list