[AMDGPU] Preserve dom-tree analysis in atomic optimizer.
authorPravin Jagtap <Pravin.Jagtap@amd.com>
Wed, 21 Jun 2023 12:02:43 +0000 (08:02 -0400)
committerPravin Jagtap <Pravin.Jagtap@amd.com>
Wed, 21 Jun 2023 12:02:43 +0000 (08:02 -0400)
commit8e1e871e2ff1d08e96e2238c8efe881a7e8b4824
tree65920b49314126e70680a5f32fe42988d0ca16f6
parent10e3ed9919ffb68d5938ccd83414b766279ace03
[AMDGPU] Preserve dom-tree analysis in atomic optimizer.

AMDGPUAtomicOptimizer updates the dominator tree whenever
it modified the control flow. Therefore preserving the
analysis similar to legacy PM.

Reviewed By: arsenm, yassingh, #amdgpu

Differential Revision: https://reviews.llvm.org/D153349
llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
llvm/test/CodeGen/AMDGPU/global-atomic-scan.ll