[Attributor] Use existing `returned` information better
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 20 Feb 2020 05:39:57 +0000 (23:39 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 20 Feb 2020 05:46:07 +0000 (23:46 -0600)
commitf8ad735729bf8892d71863b4da44ca2dde24d778
tree9ac48b9911cee792a0d0a6507699313542cca833
parenta801ee869dede6fcef4e6970e94f1a87dc805b76
[Attributor] Use existing `returned` information better

We can look through calls with `returned` argument attributes when we
collect subsuming positions. This allows us to get existing attributes
from more places.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/returned.ll