[all-commits] [llvm/llvm-project] aa9b02: [Inliner] Fix noalias metadata handling for instru...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon May 10 13:04:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa9b02ac75350a6c7c949dd24d5c6a931be26ff9
      https://github.com/llvm/llvm-project/commit/aa9b02ac75350a6c7c949dd24d5c6a931be26ff9
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

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

  Log Message:
  -----------
  [Inliner] Fix noalias metadata handling for instructions simplified during cloning (PR50270)

Instead of using VMap, which may include instructions from the
caller as a result of simplification, iterate over the
(FirstNewBlock, Caller->end()) range, which will only include new
instructions.

Fixes https://bugs.llvm.org/show_bug.cgi?id=50270.

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




More information about the All-commits mailing list