aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorAkshat Oke <Akshat.Oke@amd.com>2024-12-06 15:16:07 +0530
committerGitHub <noreply@github.com>2024-12-06 15:16:07 +0530
commit2c7ece2e8cf58d607f870ca9f02302df8aaa75d4 (patch)
tree165aee948ccca8a94b6b9bac209e7e4b19e774ed /llvm/lib/CodeGen/MachineVerifier.cpp
parent91d6e10cca4ea8d50927aba024f33c9076785d3a (diff)
downloadllvm-2c7ece2e8cf58d607f870ca9f02302df8aaa75d4.zip
llvm-2c7ece2e8cf58d607f870ca9f02302df8aaa75d4.tar.gz
llvm-2c7ece2e8cf58d607f870ca9f02302df8aaa75d4.tar.bz2
[CodeGen][NewPM] Port LiveStacks analysis to NPM (#118778)
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 8e64e40..fb4d96f 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -369,7 +369,7 @@ struct MachineVerifierLegacyPass : public MachineFunctionPass {
}
void getAnalysisUsage(AnalysisUsage &AU) const override {
- AU.addUsedIfAvailable<LiveStacks>();
+ AU.addUsedIfAvailable<LiveStacksWrapperLegacy>();
AU.addUsedIfAvailable<LiveVariablesWrapperPass>();
AU.addUsedIfAvailable<SlotIndexesWrapperPass>();
AU.addUsedIfAvailable<LiveIntervalsWrapperPass>();
@@ -491,7 +491,8 @@ bool MachineVerifier::verify(const MachineFunction &MF) {
auto *LVWrapper = PASS->getAnalysisIfAvailable<LiveVariablesWrapperPass>();
if (!LiveInts)
LiveVars = LVWrapper ? &LVWrapper->getLV() : nullptr;
- LiveStks = PASS->getAnalysisIfAvailable<LiveStacks>();
+ auto *LSWrapper = PASS->getAnalysisIfAvailable<LiveStacksWrapperLegacy>();
+ LiveStks = LSWrapper ? &LSWrapper->getLS() : nullptr;
auto *SIWrapper = PASS->getAnalysisIfAvailable<SlotIndexesWrapperPass>();
Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr;
}