[all-commits] [llvm/llvm-project] d77f07: [TailCallElim] Don’t mark llvm.stackrestore with t...
Shimin Cui via All-commits
all-commits at lists.llvm.org
Mon Aug 5 08:48:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d77f07d166618d0f33500b518144ada99be2f13f
https://github.com/llvm/llvm-project/commit/d77f07d166618d0f33500b518144ada99be2f13f
Author: Shimin Cui <scui at ca.ibm.com>
Date: 2024-08-05 (Mon, 05 Aug 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
A llvm/test/Transforms/TailCallElim/stackrestore.ll
Log Message:
-----------
[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”.
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