[all-commits] [llvm/llvm-project] 29df07: [StackColoring] Treat all stack slots as conservat...

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Mon May 11 07:23:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29df0702c36ee8e02a65c2dd351b3b54b3fdf0d6
      https://github.com/llvm/llvm-project/commit/29df0702c36ee8e02a65c2dd351b3b54b3fdf0d6
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2026-05-11 (Mon, 11 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/StackColoring.cpp
    M llvm/test/CodeGen/X86/sjlj-do-not-merge-stack-slots.ll

  Log Message:
  -----------
  [StackColoring] Treat all stack slots as conservative with `returns_twice` call-sites (#196542)

Do not merge stack slots on disjoint paths if the function may call
setjmp/sigsetjmp, as the current algorithm defaults to computing
liveness analysis from the actual uses propagated through the CFG,
rather than leveraging lifetime markers, thus making it unsound with
`returns_twice` calls.

Fixes: https://github.com/llvm/llvm-project/issues/196468.



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