[all-commits] [llvm/llvm-project] 342357: [Inliner][NoAlias] Use call site attributes too

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Sun Feb 2 21:22:30 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 342357c5687efcb6bf8191684212507226085317
      https://github.com/llvm/llvm-project/commit/342357c5687efcb6bf8191684212507226085317
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-02 (Sun, 02 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    M llvm/test/Transforms/Inline/noalias-calls.ll

  Log Message:
  -----------
  [Inliner][NoAlias] Use call site attributes too

If we had `noalias` on an argument the inliner created alias scope
metadata already. However, the call site `noalias` annotation was not
considered. Since the Attributor can derive such call site `noalias`
annotation we should treat them the same as argument annotations.

Reviewed By: hfinkel

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




More information about the All-commits mailing list