[all-commits] [llvm/llvm-project] 0e55d4: [AA] Refine ModRefInfo for llvm.memcpy.* in presen...

ebrevnov via All-commits all-commits at lists.llvm.org
Mon Jan 24 19:15:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e55d4fab0183b6dca82ce127b78ded3db918c27
      https://github.com/llvm/llvm-project/commit/0e55d4fab0183b6dca82ce127b78ded3db918c27
  Author: Evgeniy Brevnov <ybrevnov at azul.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M llvm/lib/Analysis/BasicAliasAnalysis.cpp
    M llvm/test/Analysis/BasicAA/deoptimize.ll

  Log Message:
  -----------
  [AA] Refine ModRefInfo for llvm.memcpy.* in presence of operand bundles

Presence of operand bundles changes semantics in respect to ModRef. In particular, spec says: "From the compilers perspective, deoptimization operand bundles make the call sites theyre attached to at least readonly. They read through all of their pointer typed operands (even if theyre not otherwise escaped) and the entire visible heap. Deoptimization operand bundles do not capture their operands except during deoptimization, in which case control will not be returned to the compiled frame". Fix handling of llvm.memcpy.* according to the spec.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D118033




More information about the All-commits mailing list