diff options
author | Jingyue Wu <jingyue@google.com> | 2015-04-10 05:03:50 +0000 |
---|---|---|
committer | Jingyue Wu <jingyue@google.com> | 2015-04-10 05:03:50 +0000 |
commit | 5da831cc3109ff1fc5c8f43be2cf1a1f52e030da (patch) | |
tree | bc580cdb0efc9fce2e03473d920d295c31a16e78 /llvm/lib/Analysis/Analysis.cpp | |
parent | 5c65f58f6487dd5d9dec43d927dd9842e8b72ba2 (diff) | |
download | bcm5719-llvm-5da831cc3109ff1fc5c8f43be2cf1a1f52e030da.tar.gz bcm5719-llvm-5da831cc3109ff1fc5c8f43be2cf1a1f52e030da.zip |
Divergence analysis for GPU programs
Summary:
Some optimizations such as jump threading and loop unswitching can negatively
affect performance when applied to divergent branches. The divergence analysis
added in this patch conservatively estimates which branches in a GPU program
can diverge. This information can then help LLVM to run certain optimizations
selectively.
Test Plan: test/Analysis/DivergenceAnalysis/NVPTX/diverge.ll
Reviewers: resistor, hfinkel, eliben, meheff, jholewinski
Subscribers: broune, bjarke.roune, madhur13490, tstellarAMD, dberlin, echristo, jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D8576
llvm-svn: 234567
Diffstat (limited to 'llvm/lib/Analysis/Analysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/Analysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Analysis.cpp b/llvm/lib/Analysis/Analysis.cpp index 4549c1e969f..842ff0a14e2 100644 --- a/llvm/lib/Analysis/Analysis.cpp +++ b/llvm/lib/Analysis/Analysis.cpp @@ -37,6 +37,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) { initializeCFLAliasAnalysisPass(Registry); initializeDependenceAnalysisPass(Registry); initializeDelinearizationPass(Registry); + initializeDivergenceAnalysisPass(Registry); initializeDominanceFrontierPass(Registry); initializeDomViewerPass(Registry); initializeDomPrinterPass(Registry); |