[all-commits] [llvm/llvm-project] 50c523: [InlineFunction] Only update noalias scopes once f...

dobbelaj-snps via All-commits all-commits at lists.llvm.org
Tue Feb 2 08:57:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50c523a9d4402c69d59c0b2ecb383a763d16cde9
      https://github.com/llvm/llvm-project/commit/50c523a9d4402c69d59c0b2ecb383a763d16cde9
  Author: Jeroen Dobbelaere <jeroen.dobbelaere at synopsys.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    A llvm/test/Transforms/Inline/noalias3.ll

  Log Message:
  -----------
  [InlineFunction] Only update noalias scopes once for an instruction.

Inlining sometimes maps different instructions to be inlined onto the same instruction.

We must ensure to only remap the noalias scopes once. Otherwise the scope might disappear (at best).
This patch ensures that we only replace scopes for which the mapping is known.

This approach is preferred over tracking which instructions we already handled in a SmallPtrSet,
as that one will need more memory.

Reviewed By: nikic

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




More information about the All-commits mailing list