[all-commits] [llvm/llvm-project] 5bd047: [LICM] allow MemoryAccess creation failure (#116813)

DianQK via All-commits all-commits at lists.llvm.org
Mon Nov 25 00:39:43 PST 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bd0474d1c45d58e472f25bf8292570ac78b5c15
      https://github.com/llvm/llvm-project/commit/5bd0474d1c45d58e472f25bf8292570ac78b5c15
  Author: DianQK <dianqk at dianqk.net>
  Date:   2024-11-25 (Mon, 25 Nov 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/MemorySSAUpdater.h
    M llvm/lib/Analysis/MemorySSAUpdater.cpp
    M llvm/lib/Transforms/Scalar/LICM.cpp
    A llvm/test/Transforms/LICM/PR116813-memoryssa-outdated.ll

  Log Message:
  -----------
  [LICM] allow MemoryAccess creation failure (#116813)

Fixes #116809.

After running some passes (SimpleLoopUnswitch, LoopInstSimplify, etc.),
MemorySSA might be outdated, and the instruction `I` may have become a
non-memory touching instruction.

LICM has already handled this, but it does not pass
`CreationMustSucceed=false` to `createDefinedAccess`.

(cherry picked from commit 18b02bbf441660683df7f3925946984203d49bab)



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