Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Do we really need this intra-pass verification? With -verify-dom-info the DominatorTree verification should fail after the pass like normal
llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp | ||
---|---|---|
799 | assert(!VerifyDomInfo || .... |
If -verify-dom-info is used then the normal analysis verification should catch this after this pass has run, as mentioned here: https://reviews.llvm.org/D147408#inline-1471284
So I do not think you need any explicit calls to DominatorTree::verify
Is this just the analysis was dropped because nothing after it was using it problem? If you run the pass twice with -passes do you see the error?
Understood why dom-tree verifier was not catching the un-updated DT. After IR transformations in AtomicOptimizer Analyses results are invalidated (when IR is transformed) and verifier re-computes the dom-tree freshly.
It looks like it is reported as preserved in the old PM, but not the new
llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp | ||
---|---|---|
150 | This should be fixed to report the dominator tree is updated |
This should be fixed to report the dominator tree is updated