[Inliner][NoAlias] Use call site attributes too
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 28 Jan 2020 06:20:03 +0000 (00:20 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 3 Feb 2020 05:21:29 +0000 (23:21 -0600)
commit342357c5687efcb6bf8191684212507226085317
tree7d3c72410e13253cbede20561b3b1cbaf5193c30
parentc953409ff89e38f5aa5927f5adae3078db45d81c
[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
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/noalias-calls.ll