The method is marked for deprecation. Delete the method and move all of
its consumers to use the DomTreeUpdater version.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h | ||
|---|---|---|
| 419 | Sounds like this needs updating, maybe something like Updates the dominator tree via DTU and LI if given. | |
| llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp | ||
| 107 | nit: might be clearer to move this to the DomTreeUpdater initialization so it is clear that DT isn't used elsewhere? | |
| 108 | nit: can just be DomTreeUpdater DTU(DT, DomTreeUpdater::UpdateStrategy::Lazy);? Same at other places. | |
Looks fine to me.
I have a slight preference for landing this in two stages, first convert all users and then delete the old method, but I won't insist.
| llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp | ||
|---|---|---|
| 504 | What's the reason for removing this extra verification? | |
| llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp | ||
|---|---|---|
| 504 | No good reason. Added it back. | |
Sounds like this needs updating, maybe something like Updates the dominator tree via DTU and LI if given.