Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae77ace

Browse files
committed
[Analysis] Remove DA & LegacyDA
UniformityAnalysis offers all of the same features and much more, there is no reason left to use the legacy DAs. See RFC: https://discourse.llvm.org/t/rfc-deprecate-divergenceanalysis-legacydivergenceanalysis/69538 - Remove LegacyDivergenceAnalysis.h/.cpp - Remove DivergenceAnalysis.h/.cpp + Unit tests - Remove SyncDependenceAnalysis - it was not a real registered analysis and was only used by DAs - Remove/adjust references to the passes in the docs where applicable - Remove TTI hook associated with those passes. - Move tests to UniformityAnalysis folder. - Remove RUN lines for the DA, leave only the UA ones. - Some tests had to be adjusted/removed depending on how they used the legacy DAs. Reviewed By: foad, sameerds Differential Revision: https://reviews.llvm.org/D148116
1 parent 8b1e81f commit ae77ace

File tree

90 files changed

+33
-3120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+33
-3120
lines changed

llvm/docs/ConvergenceAndUniformity.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ subgroups):
5151
This document presents a definition of convergence that is reasonable
5252
for real targets and is compatible with the currently implicit
5353
semantics of convergent operations in LLVM IR. This is accompanied by
54-
a *uniformity analysis* that extends the existing divergence analysis
54+
a *uniformity analysis* that extends previous work on divergence analysis
5555
[DivergenceSPMD]_ to cover irreducible control-flow.
5656

5757
.. [DivergenceSPMD] Julian Rosemann, Simon Moll, and Sebastian

llvm/include/llvm/ADT/GenericUniformityInfo.h

-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
#ifndef LLVM_ADT_GENERICUNIFORMITYINFO_H
1010
#define LLVM_ADT_GENERICUNIFORMITYINFO_H
1111

12-
// #include "llvm/ADT/DenseSet.h"
1312
#include "llvm/ADT/GenericCycleInfo.h"
14-
// #include "llvm/ADT/SmallPtrSet.h"
15-
// #include "llvm/ADT/Uniformity.h"
16-
// #include "llvm/Analysis/LegacyDivergenceAnalysis.h"
1713
#include "llvm/Support/raw_ostream.h"
1814

1915
namespace llvm {

llvm/include/llvm/Analysis/DivergenceAnalysis.h

-210
This file was deleted.

llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h

-103
This file was deleted.

llvm/include/llvm/Analysis/Passes.h

-7
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ namespace llvm {
4646
//
4747
FunctionPass *createDelinearizationPass();
4848

49-
//===--------------------------------------------------------------------===//
50-
//
51-
// createLegacyDivergenceAnalysisPass - This pass determines which branches in a GPU
52-
// program are divergent.
53-
//
54-
FunctionPass *createLegacyDivergenceAnalysisPass();
55-
5649
//===--------------------------------------------------------------------===//
5750
//
5851
// Minor pass prototypes, allowing us to expose them through bugpoint and

0 commit comments

Comments
 (0)