[PATCH] D130201: llvm.swift.async.context.addr cannot be modeled as NoMem because we don't want it to be cse'd accross async suspends

Arnold Schwaighofer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 14:01:35 PDT 2022


aschwaighofer created this revision.
aschwaighofer added a reviewer: t.p.northover.
Herald added subscribers: jsji, pengfei, hiraditya.
Herald added a project: All.
aschwaighofer requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

An async suspend models the split between two partial async functions.
`llvm.swift.async.context.addr ` will have a different value in the two
partial functions so it is not correct to generally CSE the instruction.

rdar://97336162


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130201

Files:
  llvm/include/llvm/IR/Intrinsics.td
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/Transforms/Coroutines/coro-async-no-cse-swift-async-context-addr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130201.446259.patch
Type: text/x-patch
Size: 9621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220720/c7eb8c2a/attachment.bin>


More information about the llvm-commits mailing list