[all-commits] [llvm/llvm-project] b07fc8: [SPARC] Do not use the unimp struct-return convent...

Folkert de Vries via All-commits all-commits at lists.llvm.org
Tue Aug 4 12:01:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b07fc8a44aa6ac03ec8e0c79b04134bda87b5279
      https://github.com/llvm/llvm-project/commit/b07fc8a44aa6ac03ec8e0c79b04134bda87b5279
  Author: Folkert de Vries <folkert at folkertdev.nl>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/Target/Sparc/DelaySlotFiller.cpp
    M llvm/lib/Target/Sparc/SparcISelLowering.cpp
    M llvm/test/CodeGen/SPARC/2011-01-22-SRet.ll

  Log Message:
  -----------
  [SPARC] Do not use the unimp struct-return convention for zero-sized types (#213733)

GCC has special handling for an `sret` of a zero-sized type, match that
handling.

https://godbolt.org/z/Tcraao7rT

It seems unlikely someone is actually relying on this, so I haven't
added the abi compatibility logic. Rust however uses zero-sized types
quite heavily, so having this work correctly is useful there.



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