diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-01-29 18:02:42 -0600 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-01-29 19:24:34 -0600 |
commit | 791c9f1145f89d0ad8daddcc2207a8cdacbadaa0 (patch) | |
tree | 7e35b058127261a4a2c6cd469cbaac0ac1fe26c8 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | 91f863be4f04337da19c26c4fbda4ce10bfc0668 (diff) | |
download | llvm-791c9f1145f89d0ad8daddcc2207a8cdacbadaa0.zip llvm-791c9f1145f89d0ad8daddcc2207a8cdacbadaa0.tar.gz llvm-791c9f1145f89d0ad8daddcc2207a8cdacbadaa0.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions