[all-commits] [llvm/llvm-project] 791c9f: [Attributor] Fix TODO to avoid recomputation of re...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Wed Jan 29 17:25:56 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 791c9f1145f89d0ad8daddcc2207a8cdacbadaa0
https://github.com/llvm/llvm-project/commit/791c9f1145f89d0ad8daddcc2207a8cdacbadaa0
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2020-01-29 (Wed, 29 Jan 2020)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Attributor.h
M llvm/lib/Transforms/IPO/Attributor.cpp
Log Message:
-----------
[Attributor] Fix TODO to avoid recomputation of results
The helpers AAReturnedFromReturnedValues and
AACallSiteReturnedFromReturned are useful not only to avoid code
duplication but also to avoid recomputation of results. If we have N
call sites we should not recompute the function return information N
times but once. These are mostly straightforward usages with some minor
improvements on the helpers and addition of a new one
(IRPosition::getAssociatedType) that knows about function return types.
More information about the All-commits
mailing list