1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Analysis
Bardia Mahjour 12d9e4e269 Data Dependence Graph Basics
Summary:
This is the first patch in a series of patches that will implement data dependence graph in LLVM. Many of the ideas used in this implementation are based on the following paper:
D. J. Kuck, R. H. Kuhn, D. A. Padua, B. Leasure, and M. Wolfe (1981). DEPENDENCE GRAPHS AND COMPILER OPTIMIZATIONS.
This patch contains support for a basic DDGs containing only atomic nodes (one node for each instruction). The edges are two fold: def-use edges and memory-dependence edges.
The implementation takes a list of basic-blocks and only considers dependencies among instructions in those basic blocks. Any dependencies coming into or going out of instructions that do not belong to those basic blocks are ignored.

The algorithm for building the graph involves the following steps in order:

  1. For each instruction in the range of basic blocks to consider, create an atomic node in the resulting graph.
  2. For each node in the graph establish def-use edges to/from other nodes in the graph.
  3. For each pair of nodes containing memory instruction(s) create memory edges between them. This part of the algorithm goes through the instructions in lexicographical order and creates edges in reverse order if the sink of the dependence occurs before the source of it.

Authored By: bmahjour

Reviewer: Meinersbur, fhahn, myhsu, xtian, dmgreen, kbarton, jdoerfert

Reviewed By: Meinersbur, fhahn, myhsu

Subscribers: ychen, arphaman, simoll, a.elovikov, mgorny, hiraditya, jfb, wuzish, llvm-commits, jsji, Whitney, etiotto

Tag: #llvm

Differential Revision: https://reviews.llvm.org/D65350

llvm-svn: 372238
2019-09-18 17:43:45 +00:00
..
AliasSet
AssumptionCache
BasicAA [SimplifyLibCalls] Mark known arguments with nonnull 2019-09-17 09:32:52 +00:00
BlockFrequencyInfo
BranchProbabilityInfo [BPI] Adjust the probability for floating point unordered comparison 2019-09-10 17:25:11 +00:00
CallGraph Revert "[CallGraph] Refine call graph for indirect calls with !callees metadata" 2019-08-16 10:59:18 +00:00
CFLAliasAnalysis [CFLGraph] Add support for unary fneg instruction. 2019-06-06 19:21:23 +00:00
ConstantFolding [ConstantFolding] Expand folding of some library functions 2019-09-12 21:23:22 +00:00
CostModel [CostModel][X86] Add scalar sext/zext cost tests 2019-09-02 21:02:51 +00:00
DDG Data Dependence Graph Basics 2019-09-18 17:43:45 +00:00
Delinearization
DemandedBits
DependenceAnalysis [NFC] Test commit access 2019-09-16 20:44:15 +00:00
DivergenceAnalysis [SDA] Don't stop divergence propagation at the IPD. 2019-09-18 13:40:22 +00:00
DominanceFrontier
Dominators
GlobalsModRef
IVUsers
LazyCallGraph Revert "[CallGraph] Refine call graph for indirect calls with !callees metadata" 2019-08-16 10:59:18 +00:00
LazyValueAnalysis
LegacyDivergenceAnalysis
Lint [Lint] Permit aliasing noalias readonly arguments 2019-04-23 23:43:47 +00:00
LoopAccessAnalysis Revert "[IRBuilder] Fold consistently for or/and whether constant is LHS or RHS" 2019-07-07 22:12:01 +00:00
LoopCacheAnalysis/PowerPC Title: Improve Loop Cache Analysis LIT tests. 2019-08-09 16:18:22 +00:00
LoopInfo
MemoryDependenceAnalysis [AliasAnalysis/NewPassManager] Invalidate AAManager less often. 2019-04-30 22:15:47 +00:00
MemorySSA [MemorySSA] Fix phi insertion when inserting a def. 2019-09-17 16:33:35 +00:00
MustExecute [MustExec] Add a generic "must-be-executed-context" explorer 2019-08-23 15:17:27 +00:00
PhiValues
PostDominators
ProfileSummary
RegionInfo
ScalarEvolution [SCEV] Add smin support to getRangeRef 2019-09-12 21:32:27 +00:00
ScopedNoAliasAA
StackSafetyAnalysis
TypeBasedAliasAnalysis [SimplifyLibCalls] Mark known arguments with nonnull 2019-09-17 09:32:52 +00:00
ValueTracking [IR][Verifier] Allow IntToPtrInst to be !dereferenceable 2019-07-23 17:19:56 +00:00
alias-analysis-uses.ll