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

Chris Lattner lattner at cs.uiuc.edu
Sat Aug 30 19:46:01 PDT 2003


Changes in directory llvm/lib/Transforms/Scalar:

ScalarReplAggregates.cpp updated: 1.8 -> 1.9

---
Log message:

ScalarRepl does not modify the CFG.  Say so!


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.8 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.9
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.8	Fri Aug  1 17:15:03 2003
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp	Sat Aug 30 19:45:13 2003
@@ -23,6 +23,12 @@
   struct SROA : public FunctionPass {
     bool runOnFunction(Function &F);
 
+    // getAnalysisUsage - This pass does not require any passes, but we know it
+    // will not alter the CFG, so say so.
+    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+      AU.setPreservesCFG();
+    }
+
   private:
     bool isSafeElementUse(Value *Ptr);
     bool isSafeUseOfAllocation(Instruction *User);





More information about the llvm-commits mailing list