summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/archive-replace-pos.test
diff options
context:
space:
mode:
authorAditya Kumar <hiraditya@msn.com>2017-09-13 05:28:03 +0000
committerAditya Kumar <hiraditya@msn.com>2017-09-13 05:28:03 +0000
commitdfa8741c9693c344477c842a25ee0cb6a6f59fcd (patch)
tree89b8d6c2f501e19fed227941965099dfb82e165c /llvm/test/Object/archive-replace-pos.test
parentd9d2a89e508081e0d413ef61aef8dd47c2a89324 (diff)
downloadbcm5719-llvm-dfa8741c9693c344477c842a25ee0cb6a6f59fcd.tar.gz
bcm5719-llvm-dfa8741c9693c344477c842a25ee0cb6a6f59fcd.zip
[GVNHoist] Factor out reachability to search for anticipable instructions quickly
Factor out the reachability such that multiple queries to find reachability of values are fast. This is based on finding the ANTIC points in the CFG which do not change during hoisting. The ANTIC points are basically the dominance-frontiers in the inverse graph. So we introduce a data structure (CHI nodes) to keep track of values flowing out of a basic block. We only do this for values with multiple occurrences in the function as they are the potential hoistable candidates. This patch allows us to hoist instructions to a basic block with >2 successors, as well as deal with infinite loops in a trivial way. Relevant test cases are added to show the functionality as well as regression fixes from PR32821. Regression from previous GVNHoist: We do not hoist fully redundant expressions because fully redundant expressions are already handled by NewGVN Differential Revision: https://reviews.llvm.org/D35918 Reviewers: dberlin, sebpop, gberry, llvm-svn: 313116
Diffstat (limited to 'llvm/test/Object/archive-replace-pos.test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud