[PATCH] D102110: [Inliner] Fix noalias metadata handling for instructions simplified during cloning (PR50270)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 8 09:25:31 PDT 2021


nikic created this revision.
nikic added reviewers: jeroen.dobbelaere, jdoerfert.
Herald added a subscriber: hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102110

Files:
  llvm/lib/Transforms/Utils/InlineFunction.cpp
  llvm/test/Transforms/Inline/pr50270.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102110.343851.patch
Type: text/x-patch
Size: 8983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210508/aed709fc/attachment.bin>


More information about the llvm-commits mailing list