[PATCH] Divergence analysis for GPU programs

Jingyue Wu jingyue at google.com
Fri Apr 3 15:44:20 PDT 2015


Generalize the interface to isDivergent(Value *).

Besides enabling more users of this analysis, this generalizaton makes the
testing easier too. When testing whether a value is divergent, we used to add a
dummy branch that conditions on it. Now we can directly query the uniformity of
this value.


http://reviews.llvm.org/D8576

Files:
  include/llvm/Analysis/Passes.h
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  lib/Analysis/Analysis.cpp
  lib/Analysis/CMakeLists.txt
  lib/Analysis/DivergenceAnalysis.cpp
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
  lib/Target/NVPTX/NVPTXTargetTransformInfo.h
  test/Analysis/DivergenceAnalysis/NVPTX/diverge.ll
  test/Analysis/DivergenceAnalysis/NVPTX/lit.local.cfg

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8576.23238.patch
Type: text/x-patch
Size: 29292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150403/017bd1b0/attachment.bin>


More information about the llvm-commits mailing list