From a15e7eb29b74020084714047392886a32892227d Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 4 Jun 2008 09:17:16 +0000 Subject: [PATCH] LowerSubregs should not clobber any analysis. llvm-svn: 51933 --- llvm/lib/CodeGen/LowerSubregs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/CodeGen/LowerSubregs.cpp b/llvm/lib/CodeGen/LowerSubregs.cpp index 0710a3530068..aaadda1cb1cc 100644 --- a/llvm/lib/CodeGen/LowerSubregs.cpp +++ b/llvm/lib/CodeGen/LowerSubregs.cpp @@ -30,6 +30,10 @@ namespace { return "Subregister lowering instruction pass"; } + void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } + /// runOnMachineFunction - pass entry point bool runOnMachineFunction(MachineFunction&);