summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopAccessAnalysis.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-12-13 03:05:20 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-12-13 03:05:20 +0000
commitbeda7d517dfb06ea4a3523b907fe80afe438d499 (patch)
tree7cc9b034af2824b428aaa4424cc3190d9bc41ed9 /llvm/lib/Analysis/LoopAccessAnalysis.cpp
parentf842297d50ecb5dceeb89c624744fc2531c2776c (diff)
downloadbcm5719-llvm-beda7d517dfb06ea4a3523b907fe80afe438d499.tar.gz
bcm5719-llvm-beda7d517dfb06ea4a3523b907fe80afe438d499.zip
[CallSiteSplitting] Refactor creating callsites.
Summary: This change makes the call site creation more general if any of the arguments is predicated on a condition in the call site's predecessors. If we find a callsite, that potentially can be split, we collect the set of conditions for the call site's predecessors (currently only 2 predecessors are allowed). To do that, we traverse each predecessor's predecessors as long as it only has single predecessors and record the condition, if it is relevant to the call site. For each condition, we also check if the condition is taken or not. In case it is not taken, we record the inverse predicate. We use the recorded conditions to create the new call sites and split the basic block. This has 2 benefits: (1) it is slightly easier to see what is going on (IMO) and (2) we can easily extend it to handle more complex control flow. Reviewers: davidxl, junbuml Reviewed By: junbuml Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D40728 llvm-svn: 320547
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud