[llvm-commits] [llvm] r51933 - /llvm/trunk/lib/CodeGen/LowerSubregs.cpp

Evan Cheng evan.cheng at apple.com
Wed Jun 4 02:17:17 PDT 2008


Author: evancheng
Date: Wed Jun  4 04:17:16 2008
New Revision: 51933

URL: http://llvm.org/viewvc/llvm-project?rev=51933&view=rev
Log:
LowerSubregs should not clobber any analysis.

Modified:
    llvm/trunk/lib/CodeGen/LowerSubregs.cpp

Modified: llvm/trunk/lib/CodeGen/LowerSubregs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LowerSubregs.cpp?rev=51933&r1=51932&r2=51933&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LowerSubregs.cpp (original)
+++ llvm/trunk/lib/CodeGen/LowerSubregs.cpp Wed Jun  4 04:17:16 2008
@@ -30,6 +30,10 @@
       return "Subregister lowering instruction pass";
     }
 
+    void getAnalysisUsage(AnalysisUsage &AU) const {
+      AU.setPreservesAll();
+    }
+
     /// runOnMachineFunction - pass entry point
     bool runOnMachineFunction(MachineFunction&);
     





More information about the llvm-commits mailing list