[PATCH] D77767: Prevent stack coloring functions whith setjmp / longjmp

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 25 16:28:28 PDT 2020


efriedma added a comment.

The simplest thing is just disabling coalescing.

The next simplest thing to do would be to specifically disable coalescing registers live across setjmp calls (not worrying about any corresponding longjmp calls).  This is probably straightforward to query: register allocation already computes the necessary liveness information, I think.  But really, it's probably not worth the effort; disabling coalescing altogether isn't that big of a performance hit.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77767/new/

https://reviews.llvm.org/D77767





More information about the llvm-commits mailing list