diff options
author | Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> | 2022-12-20 06:49:30 +0530 |
---|---|---|
committer | Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> | 2022-12-20 07:22:24 +0530 |
commit | 475ce4c200ca640f1d6ccd097b167a04f009cb18 (patch) | |
tree | 744cdb5ac33c41fd548ce7d6d3abcfc2efb08230 /llvm/lib/CodeGen/CMakeLists.txt | |
parent | 3ebc6bee6b23f163f4977836bd50bc952449836b (diff) | |
download | llvm-475ce4c200ca640f1d6ccd097b167a04f009cb18.zip llvm-475ce4c200ca640f1d6ccd097b167a04f009cb18.tar.gz llvm-475ce4c200ca640f1d6ccd097b167a04f009cb18.tar.bz2 |
RFC: Uniformity Analysis for Irreducible Control Flow
Uniformity analysis is a generalization of divergence analysis to
include irreducible control flow:
1. The proposed spec presents a notion of "maximal convergence" that
captures the existing convention of converging threads at the
headers of natual loops.
2. Maximal convergence is then extended to irreducible cycles. The
identity of irreducible cycles is determined by the choices made
in a depth-first traversal of the control flow graph. Uniformity
analysis uses criteria that depend only on closed paths and not
cycles, to determine maximal convergence. This makes it a
conservative analysis that is independent of the effect of DFS on
CycleInfo.
3. The analysis is implemented as a template that can be
instantiated for both LLVM IR and Machine IR.
Validation:
- passes existing tests for divergence analysis
- passes new tests with irreducible control flow
- passes equivalent tests in MIR and GMIR
Based on concepts originally outlined by
Nicolai Haehnle <nicolai.haehnle@amd.com>
With contributions from Ruiling Song <ruiling.song@amd.com> and
Jay Foad <jay.foad@amd.com>.
Support for GMIR and lit tests for GMIR/MIR added by
Yashwant Singh <yashwant.singh@amd.com>.
Differential Revision: https://reviews.llvm.org/D130746
Diffstat (limited to 'llvm/lib/CodeGen/CMakeLists.txt')
-rw-r--r-- | llvm/lib/CodeGen/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt index f416570..760d590 100644 --- a/llvm/lib/CodeGen/CMakeLists.txt +++ b/llvm/lib/CodeGen/CMakeLists.txt @@ -142,6 +142,7 @@ add_llvm_component_library(LLVMCodeGen MachineSSAUpdater.cpp MachineStripDebug.cpp MachineTraceMetrics.cpp + MachineUniformityAnalysis.cpp MachineVerifier.cpp MIRFSDiscriminator.cpp MIRSampleProfile.cpp |