[all-commits] [llvm/llvm-project] 9a45e4: [MemCpyOpt] Move lifetime marker before call to en...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Nov 7 06:26:18 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a45e4beede24fdcd6b7d95416d0447ba154651c
https://github.com/llvm/llvm-project/commit/9a45e4beede24fdcd6b7d95416d0447ba154651c
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
M llvm/test/Transforms/MemCpyOpt/lifetime.ll
Log Message:
-----------
[MemCpyOpt] Move lifetime marker before call to enable call slot optimization
Currently call slot optimization may be prevented because the
lifetime markers for the destination only start after the call.
In this case, rather than aborting the transform, we should move
the lifetime.start before the call to enable the transform.
Differential Revision: https://reviews.llvm.org/D135886
More information about the All-commits
mailing list