diff options
author | Nikita Popov <npopov@redhat.com> | 2024-07-11 09:13:37 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-07-11 09:13:37 +0200 |
commit | 6a907699d8b4fb35a843ab8fd84ca56ed93fc201 (patch) | |
tree | 701af32d40c315b70f40dca3e07f1fe2ddc44818 /llvm/lib/CodeGen/XRayInstrumentation.cpp | |
parent | 7868033d2e846fa30c20455ca819fad29d9d795e (diff) | |
download | llvm-6a907699d8b4fb35a843ab8fd84ca56ed93fc201.zip llvm-6a907699d8b4fb35a843ab8fd84ca56ed93fc201.tar.gz llvm-6a907699d8b4fb35a843ab8fd84ca56ed93fc201.tar.bz2 |
Revert "[CodeGen] Remove `applySplitCriticalEdges` in `MachineDominatorTree` (#97055)"
This reverts commit c5e5088033fed170068d818c54af6862e449b545.
Causes large compile-time regressions.
Diffstat (limited to 'llvm/lib/CodeGen/XRayInstrumentation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/XRayInstrumentation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/XRayInstrumentation.cpp b/llvm/lib/CodeGen/XRayInstrumentation.cpp index 5c0ff61..d7cc5d5 100644 --- a/llvm/lib/CodeGen/XRayInstrumentation.cpp +++ b/llvm/lib/CodeGen/XRayInstrumentation.cpp @@ -175,7 +175,7 @@ bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { auto *MDT = MDTWrapper ? &MDTWrapper->getDomTree() : nullptr; MachineDominatorTree ComputedMDT; if (!MDT) { - ComputedMDT.recalculate(MF); + ComputedMDT.getBase().recalculate(MF); MDT = &ComputedMDT; } @@ -184,7 +184,7 @@ bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { auto *MLI = MLIWrapper ? &MLIWrapper->getLI() : nullptr; MachineLoopInfo ComputedMLI; if (!MLI) { - ComputedMLI.analyze(*MDT); + ComputedMLI.analyze(MDT->getBase()); MLI = &ComputedMLI; } |