[all-commits] [llvm/llvm-project] cde72a: [mlir][LLVM] Append call ops alias scopes to inlin...

Markus Böck via All-commits all-commits at lists.llvm.org
Tue Jul 18 07:27:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cde72af3dbb68dd3cc3b1012225551ccf3879713
      https://github.com/llvm/llvm-project/commit/cde72af3dbb68dd3cc3b1012225551ccf3879713
  Author: Markus Böck <markus.bock+llvm at nextsilicon.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp
    M mlir/test/Dialect/LLVMIR/inlining-alias-scopes.mlir

  Log Message:
  -----------
  [mlir][LLVM] Append call ops alias scopes to inlined operations

Currently when inlining, any alias scope information previously attached to the call op is lost. This leads to a loss of information that could be used by alias analysis to determine that two memory access operations do not alias.

This patch fixes this issue by also taking any alias scopes of the call operation into account. These can then simply be appended onto any inlined operations.

This is analogous to the following code in LLVM: https://github.com/llvm/llvm-project/blob/1768c4597e70477af2d69f576f33400181a5f945/llvm/lib/Transforms/Utils/InlineFunction.cpp#L940

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




More information about the All-commits mailing list