llvm-project/llvm/test/Transforms/GVNHoist
Aditya Kumar dfa8741c96 [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
2017-09-13 05:28:03 +00:00
..
hoist-call.ll
hoist-convergent.ll
hoist-inline.ll Disable GVN Hoist due to still more bugs being found in it. There is 2017-04-27 00:28:03 +00:00
hoist-md.ll
hoist-more-than-two-branches.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-mssa.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-newgvn.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-pr20242.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-pr22005.ll
hoist-pr28606.ll
hoist-pr28933.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-pr31891.ll Fix my GVNHoist test case from r294317 2017-02-07 17:35:53 +00:00
hoist-recursive-geps.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
hoist-unsafe-pr31729.ll [GVNHoist] Don't hoist unsafe scalars at -Oz (PR31729) 2017-03-01 17:15:08 +00:00
hoist-very-busy.ll [GVNHoist] Call isGuaranteedToTransferExecutionToSuccessor on each instruction 2017-04-10 20:45:17 +00:00
hoist.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
infinite-loop-direct.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
infinite-loop-indirect.ll [GVNHoist] Factor out reachability to search for anticipable instructions quickly 2017-09-13 05:28:03 +00:00
ld_hoist1.ll Remove the load hoisting code of MLSM, it is completely subsumed by GVNHoist 2017-01-24 19:55:36 +00:00
ld_hoist_st_sink.ll Remove the load hoisting code of MLSM, it is completely subsumed by GVNHoist 2017-01-24 19:55:36 +00:00
pr28626.ll
pr29031.ll
pr29034.ll Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
pr30216.ll
pr30499.ll