[llvm] AMDGPU/NewPM: Port SIAnnotateControlFlow to new pass manager (PR #102653)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 11:21:36 PDT 2024
================
@@ -349,15 +331,9 @@ bool SIAnnotateControlFlow::closeControlFlow(BasicBlock *BB) {
/// Annotate the control flow with intrinsics so the backend can
/// recognize if/then/else and loops.
-bool SIAnnotateControlFlow::runOnFunction(Function &F) {
- DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
- LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
- UA = &getAnalysis<UniformityInfoWrapperPass>().getUniformityInfo();
- TargetPassConfig &TPC = getAnalysis<TargetPassConfig>();
- const TargetMachine &TM = TPC.getTM<TargetMachine>();
-
+bool SIAnnotateControlFlow::run(Function &F) {
bool Changed = false;
- initialize(*F.getParent(), TM.getSubtarget<GCNSubtarget>(F));
+
----------------
arsenm wrote:
It's now done in the constructor
https://github.com/llvm/llvm-project/pull/102653
More information about the llvm-commits
mailing list