[all-commits] [llvm/llvm-project] 1d0f75: [InlineFunction] Update metadata on loads that are...

annamthomas via All-commits all-commits at lists.llvm.org
Sun Apr 5 11:51:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d0f757904919d19f1cf5dcd307874bceb1e9efb
      https://github.com/llvm/llvm-project/commit/1d0f757904919d19f1cf5dcd307874bceb1e9efb
  Author: Anna Thomas <anna at azul.com>
  Date:   2020-04-05 (Sun, 05 Apr 2020)

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

  Log Message:
  -----------
  [InlineFunction] Update metadata on loads that are return values

This patch builds upon D76140 by updating metadata on pointer typed
loads in inlined functions, when the load is the return value, and the
callsite contains return attributes which can be updated as metadata on
the load.
Added test cases show this for nonnull, dereferenceable,
dereferenceable_or_null

Reviewed-By: jdoerfert

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




More information about the All-commits mailing list