[PATCH] D84665: [Attributor] Implement AAReachability
Shinji Okumura via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 08:34:00 PDT 2020
okura created this revision.
okura added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, bbn, kuter, uenoku, hiraditya.
Herald added a reviewer: sstefan1.
Herald added a reviewer: uenoku.
Herald added a reviewer: homerdin.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Currently, AAReachability does not compute anything and only use `isPotentiallyReachable`.
This patch makes it possible for AAReachability to use liveness information from `AAIsDead`.
In `AAReachability::updateImpl`, we collect reachable successor basic blocks for each basic block and construct a graph.
When reachability between two instructions is queried, check it using the graph.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84665
Files:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/callbacks.ll
llvm/test/Transforms/Attributor/noalias.ll
llvm/test/Transforms/Attributor/read_write_returned_arguments_scc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84665.280927.patch
Type: text/x-patch
Size: 17295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/36abe954/attachment.bin>
More information about the llvm-commits
mailing list