[all-commits] [llvm/llvm-project] 8f6248: [MemCpyOpt] Allow stack move optimization if one a...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Oct 30 02:24:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f624815bf7a85768aed48dab8047a3465c8f2ed
      https://github.com/llvm/llvm-project/commit/8f624815bf7a85768aed48dab8047a3465c8f2ed
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-10-30 (Thu, 30 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/stack-move.ll

  Log Message:
  -----------
  [MemCpyOpt] Allow stack move optimization if one address captured (#165527)

Allow the stack move optimization (which merges two allocas) when the
address of only one alloca is captured (and the provenance is not
captured). Both addresses need to be captured to observe that the
allocas were merged.

Fixes https://github.com/llvm/llvm-project/issues/165484.



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