Files
clang-p2996/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
Shimin Cui d77f07d166 [TailCallElim] Don’t mark llvm.stackrestore with tail-call (#101352)
This is to teach tailcallelim transformation not to mark
llvm.stackrestore with tail-call, as the intrinsic call can modify
unescaped allocas from the caller.
 
This fixes a problem found with our downstream testing. The problem can
also be shown when running the test case
llvm/test/Transforms/MemCpyOpt/stackrestore with passes=”tailcallelim,
memcpyopt”.
2024-08-05 11:47:53 -04:00

36 KiB