[all-commits] [llvm/llvm-project] 8f9778: Disable tail mem libcalls in swifterror functions ...

Hiroshi Yamauchi via All-commits all-commits at lists.llvm.org
Fri Aug 7 13:35:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f9778dd1626eeafaa0bddfed5faa11010ff5046
      https://github.com/llvm/llvm-project/commit/8f9778dd1626eeafaa0bddfed5faa11010ff5046
  Author: Hiroshi Yamauchi <56735936+hjyamauchi at users.noreply.github.com>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    A llvm/test/CodeGen/AArch64/swifterror-tailcall-memops.ll

  Log Message:
  -----------
  Disable tail mem libcalls in swifterror functions (#214590)

Tail calls in functions with a swifterror parameter aren't supported yet
and there's a guard against this but the same guard is missing in the
memcpy/memmove/memset libcall paths, which caused a miscompile/crash.
Apply this guard in those places.

https://github.com/swiftlang/swift/issues/90477
rdar://181625760



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