[PATCH] D148507: Reapply Move "auto-init" instructions to the dominator of their users
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 17 02:42:53 PDT 2023
serge-sans-paille created this revision.
serge-sans-paille added reviewers: hans, nikic, nickdesaulniers, efriedma, ayzhao, asbirlea.
Herald added subscribers: ormris, StephenFan, wenlei, steven_wu, hiraditya.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Original patch (50b2a113db197a97f60ad2aace8b7382dc9b8c31 <https://reviews.llvm.org/rG50b2a113db197a97f60ad2aace8b7382dc9b8c31>) ignored the
fact that -ftrivial-auto-var-init could affect function parameters with
the sret attribute.
Just do not move instruction that don't affect alloca.
Also add missing test case for volatile instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148507
Files:
llvm/include/llvm/Transforms/Utils/MoveAutoInit.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassBuilderPipelines.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/MoveAutoInit.cpp
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/new-pm-lto-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
llvm/test/Transforms/MoveAutoInit/branch.ll
llvm/test/Transforms/MoveAutoInit/clobber.ll
llvm/test/Transforms/MoveAutoInit/fence.ll
llvm/test/Transforms/MoveAutoInit/loop.ll
llvm/test/Transforms/MoveAutoInit/scalar.ll
llvm/test/Transforms/MoveAutoInit/sret.ll
llvm/test/Transforms/MoveAutoInit/volatile.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148507.514146.patch
Type: text/x-patch
Size: 36827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230417/72f3ed08/attachment.bin>
More information about the llvm-commits
mailing list