diff options
| author | Akshat Oke <Akshat.Oke@amd.com> | 2024-12-04 14:31:34 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-04 14:31:34 +0530 |
| commit | d9b4bdbff597d0ed98dd82674e456ac4c751a6a0 (patch) | |
| tree | 8c51157549645ed22100acb0a340d15208135786 /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | 3b0cb8979624bc052587712650bfd52f77eb69d3 (diff) | |
[CodeGen][NewPM] Port LiveDebugVariables to NPM (#115468)
The existing analysis was already a pimpl wrapper.
I have extracted legacy pass logic to a LDVImpl wrapper named
`LiveDebugVariables` which is the analysis::Result now. This controls
whether to activate the LDV (depending on `-live-debug-variables` and
DIsubprogram) itself.
The legacy and new analysis only construct the LiveDebugVariables.
VirtRegRewriter will test this.
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index a1fa266354a5..cdc530621de6 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -159,7 +159,7 @@ namespace { // may be invoked multiple times requiring it to save these analyses to be // used by RA later. AU.addPreserved<LiveIntervalsWrapperPass>(); - AU.addPreserved<LiveDebugVariables>(); + AU.addPreserved<LiveDebugVariablesWrapperLegacy>(); MachineFunctionPass::getAnalysisUsage(AU); } |
