[all-commits] [llvm/llvm-project] 4e6e47: [MemCpyOpt] Merge alias metadatas when replacing a...

DianQK via All-commits all-commits at lists.llvm.org
Thu Sep 28 01:13:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e6e476329a8359cb381517864ed6f88a152e37b
      https://github.com/llvm/llvm-project/commit/4e6e476329a8359cb381517864ed6f88a152e37b
  Author: DianQK <dianqk at dianqk.net>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/memcpy.ll

  Log Message:
  -----------
  [MemCpyOpt] Merge alias metadatas when replacing arguments (#67539)

Alias metadata may no longer be valid after replacing the call argument.
Fix this by merging it with the memcpy alias metadata.

This fixes a miscompilation encountered in
https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Failing.20tests.20when.20rustc.20is.20compiled.20with.201.20CGU.




More information about the All-commits mailing list