HomePhabricator

[NewPM] Introduce (GPU)DivergenceAnalysis in the new pass manager

Authored by sameerds on Feb 15 2021, 8:56 PM.

Description

[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

Details

Committed
sameerdsFeb 15 2021, 8:56 PM
Reviewer
aeubanks
Differential Revision
D96615: [NewPM] Introduce (GPU)DivergenceAnalysis in the new pass manager
Parents
rG71811048c006: [debugserver] Correctly pass argv[0] to execl
Branches
Unknown
Tags
Unknown