From 8ae1bee13043781f56a9f22363185289b4b63491 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 8 Oct 2018 23:47:34 +0000 Subject: MachineFunctionPrinterPass: Declare SlotIndexes as used if available; NFC This makes print-machineinstrs print the slot indexes in more situations. NFC for normal compilation. --- llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp index 9c3288e02db..9c96ba74877 100644 --- a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp @@ -39,6 +39,7 @@ struct MachineFunctionPrinterPass : public MachineFunctionPass { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); + AU.addUsedIfAvailable(); MachineFunctionPass::getAnalysisUsage(AU); } -- cgit v1.2.3