[PATCH] D53493: [DA] GPUDivergenceAnalysis for unstructured GPU kernels

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 06:14:46 PDT 2018


simoll created this revision.
Herald added subscribers: llvm-commits, jfb, jvesely, jholewinski.

This is patch #3 of the new DivergenceAnalysis

  <https://lists.llvm.org/pipermail/llvm-dev/2018-May/123606.html>

The GPUDivergenceAnalysis is intended to eventually supersede the existing
LegacyDivergenceAnalysis. The existing LegacyDivergenceAnalysis produces
incorrect results on unstructured Control-Flow Graphs:

  <https://bugs.llvm.org/show_bug.cgi?id=37185>

This patch adds the option -use-gpu-divergence-analysis to the
LegacyDivergenceAnalysis to turn it into a transparent wrapper for the
GPUDivergenceAnalysis.


Repository:
  rL LLVM

https://reviews.llvm.org/D53493

Files:
  include/llvm/Analysis/DivergenceAnalysis.h
  include/llvm/Analysis/LegacyDivergenceAnalysis.h
  lib/Analysis/DivergenceAnalysis.cpp
  lib/Analysis/LegacyDivergenceAnalysis.cpp
  test/Analysis/DivergenceAnalysis/AMDGPU/always_uniform.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/atomics.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/hidden_diverge.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/hidden_loopdiverge.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/intrinsics.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/irreducible.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/kernel-args.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/lit.local.cfg
  test/Analysis/DivergenceAnalysis/AMDGPU/llvm.amdgcn.buffer.atomic.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/llvm.amdgcn.image.atomic.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/no-return-blocks.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/phi-undef.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/temporal_diverge.ll
  test/Analysis/DivergenceAnalysis/AMDGPU/workitem-intrinsics.ll
  test/Analysis/DivergenceAnalysis/NVPTX/daorder.ll
  test/Analysis/DivergenceAnalysis/NVPTX/diverge.ll
  test/Analysis/DivergenceAnalysis/NVPTX/hidden_diverge.ll
  test/Analysis/DivergenceAnalysis/NVPTX/irreducible.ll
  test/Analysis/DivergenceAnalysis/NVPTX/lit.local.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53493.170396.patch
Type: text/x-patch
Size: 57685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/1e50bb67/attachment-0001.bin>


More information about the llvm-commits mailing list