]> granicus.if.org Git - llvm/commit
[Attributor] Provide easier checkForallReturnedValues functionality
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:27:24 +0000 (22:27 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:27:24 +0000 (22:27 +0000)
commit30deba89f049061618ee7f88e1a08c02b27054e7
treeb40454cce1bae3c498b9a9378fbd306b76a55394
parentac13336233902069a6045551fa8df44c691f8464
[Attributor] Provide easier checkForallReturnedValues functionality

Summary:
So far, whenever one wants to look at returned values, one had to deal
with the AAReturnedValues and potentially with the AAIsDead attribute.
In the same spirit as other checkForAllXXX methods, we add this
functionality now to the Attributor. By adopting the use sites we got
better results when return instructions were dead.

Reviewers: sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368222 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/Attributor.h
lib/Transforms/IPO/Attributor.cpp
test/Transforms/FunctionAttrs/arg_nocapture.ll
test/Transforms/FunctionAttrs/arg_returned.ll