SuccessChanges

Summary

  1. [NewPM] Introduce (GPU)DivergenceAnalysis in the new pass manager (details)
Commit 11bf7da64a11dbae422ff322f629be6950f9bfb7 by sameer.sahasrabuddhe
[NewPM] Introduce (GPU)DivergenceAnalysis in the new pass manager

The GPUDivergenceAnalysis is now renamed to just "DivergenceAnalysis"
since there is no conflict with LegacyDivergenceAnalysis. In the
legacy PM, this analysis can only be used through the legacy DA
serving as a wrapper. It is now made available as a pass in the new
PM, and has no relation with the legacy DA.

The new DA currently cannot handle irreducible control flow; its
presence can cause the analysis to run indefinitely. The analysis is
now modified to detect this and report all instructions in the
function as divergent. This is super conservative, but allows the
analysis to be used without hanging the compiler.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D96615
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/llvm.amdgcn.image.atomic.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/hidden_loopdiverge.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/trivial-join-at-loop-exit.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/temporal_diverge.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/NVPTX/hidden_diverge.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/no-return-blocks.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/control-flow-intrinsics.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/propagate-loop-live-out.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/unreachable-loop-block.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/b42473-r1-crash.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/llvm.amdgcn.image.atomic.ll
The file was modifiedllvm/lib/Analysis/DivergenceAnalysis.cpp
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/NVPTX/daorder.ll
The file was modifiedllvm/tools/opt/opt.cpp
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/llvm.amdgcn.buffer.atomic.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/no-return-blocks.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/intrinsics.ll
The file was modifiedllvm/unittests/Analysis/DivergenceAnalysisTest.cpp
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/join-at-loop-exit.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/kernel-args.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/phi-undef.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/hidden_diverge.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/unreachable-loop-block.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/workitem-intrinsics.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/NVPTX/irreducible.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/always_uniform.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/interp_f16.ll
The file was modifiedllvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/atomics.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/atomics.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/inline-asm.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/NVPTX/diverge.ll
The file was modifiedllvm/include/llvm/Analysis/DivergenceAnalysis.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/intrinsics.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/llvm.amdgcn.buffer.atomic.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/loads.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/kernel-args.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/workitem-intrinsics.ll
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/irreducible.ll
The file was modifiedllvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
The file was modifiedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/phi-undef.ll
The file was modifiedllvm/test/Analysis/LegacyDivergenceAnalysis/NVPTX/diverge.ll