[all-commits] [llvm/llvm-project] 58e6ee: llvm.swift.async.context.addr cannot be modeled as...

Arnold Schwaighofer via All-commits all-commits at lists.llvm.org
Fri Jul 22 11:51:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58e6ee0e1f1668ff9dd93e4a4084e36bc79fdf88
      https://github.com/llvm/llvm-project/commit/58e6ee0e1f1668ff9dd93e4a4084e36bc79fdf88
  Author: Arnold Schwaighofer <aschwaighofer at apple.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

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

  Log Message:
  -----------
  llvm.swift.async.context.addr cannot be modeled as NoMem because we don't want it to be cse'd accross async suspends

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

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




More information about the All-commits mailing list