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/CodeGen.cpp | |
parent | 3b0cb8979624bc052587712650bfd52f77eb69d3 (diff) | |
download | llvm-d9b4bdbff597d0ed98dd82674e456ac4c751a6a0.zip llvm-d9b4bdbff597d0ed98dd82674e456ac4c751a6a0.tar.gz llvm-d9b4bdbff597d0ed98dd82674e456ac4c751a6a0.tar.bz2 |
[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/CodeGen.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index 408395f..5942881 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -59,7 +59,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeInterleavedAccessPass(Registry); initializeJMCInstrumenterPass(Registry); initializeLiveDebugValuesPass(Registry); - initializeLiveDebugVariablesPass(Registry); + initializeLiveDebugVariablesWrapperLegacyPass(Registry); initializeLiveIntervalsWrapperPassPass(Registry); initializeLiveRangeShrinkPass(Registry); initializeLiveStacksPass(Registry); |