From 5509a18b5a38868e29fae1f7b19390b029c53091 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 6 Jul 2022 14:26:16 +0100 Subject: [PATCH] [MachineVerifier] Try harder to verify SlotIndexes Verify the SlotIndexes analysis after a pass that claims to preserve it, even if there are no further passes (apart from the verifier itself) that would use the analysis. Differential Revision: https://reviews.llvm.org/D129201 --- llvm/lib/CodeGen/MachineVerifier.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index d26b554..84ebcd1 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -296,6 +296,7 @@ namespace { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addUsedIfAvailable(); AU.addUsedIfAvailable(); + AU.addUsedIfAvailable(); AU.setPreservesAll(); MachineFunctionPass::getAnalysisUsage(AU); } -- 2.7.4