[llvm-commits] [llvm] r111281 - /llvm/trunk/lib/CodeGen/MachineCSE.cpp

Evan Cheng evan.cheng at apple.com
Tue Aug 17 13:57:42 PDT 2010


Author: evancheng
Date: Tue Aug 17 15:57:42 2010
New Revision: 111281

URL: http://llvm.org/viewvc/llvm-project?rev=111281&view=rev
Log:
Machine CSE preserves CFG. Pass manager was freeing machineloopinfo after machine cse before.

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

Modified: llvm/trunk/lib/CodeGen/MachineCSE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCSE.cpp?rev=111281&r1=111280&r2=111281&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCSE.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCSE.cpp Tue Aug 17 15:57:42 2010
@@ -49,6 +49,7 @@
       AU.setPreservesCFG();
       MachineFunctionPass::getAnalysisUsage(AU);
       AU.addRequired<AliasAnalysis>();
+      AU.addPreservedID(MachineLoopInfoID);
       AU.addRequired<MachineDominatorTree>();
       AU.addPreserved<MachineDominatorTree>();
     }





More information about the llvm-commits mailing list