[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Owen Anderson resistor at mac.com
Thu Aug 24 20:32:27 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

IndVarSimplify.cpp updated: 1.89 -> 1.90
---
Log message:

Specify that  indvars actually preserve LCSSA.  This has been done for a while, but I
forgot to put in the analysis usage.


---
Diffs of the changes:  (+3 -0)

 IndVarSimplify.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.89 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.90
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.89	Fri Aug 18 04:01:07 2006
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Thu Aug 24 22:32:13 2006
@@ -79,6 +79,7 @@
       AU.addRequired<ScalarEvolution>();
       AU.addRequired<LoopInfo>();
       AU.addPreservedID(LoopSimplifyID);
+      AU.addPreservedID(LCSSAID);
       AU.setPreservesCFG();
     }
   private:
@@ -570,4 +571,6 @@
 #endif
 
   DeleteTriviallyDeadInstructions(DeadInsts);
+  
+  assert(L->isLCSSAForm());
 }






More information about the llvm-commits mailing list