[llvm-commits] [llvm] r56868 - /llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp
Nuno Lopes
nunoplopes at sapo.pt
Tue Sep 30 11:34:38 PDT 2008
Author: nlopes
Date: Tue Sep 30 13:34:38 2008
New Revision: 56868
URL: http://llvm.org/viewvc/llvm-project?rev=56868&view=rev
Log:
add AU.setPreservesCFG() since this pass only adds and removes function attributes
Modified:
llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp
Modified: llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp?rev=56868&r1=56867&r2=56868&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/AddReadAttrs.cpp Tue Sep 30 13:34:38 2008
@@ -35,6 +35,11 @@
// runOnSCC - Analyze the SCC, performing the transformation if possible.
bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
+
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.setPreservesCFG();
+ CallGraphSCCPass::getAnalysisUsage(AU);
+ }
};
}
More information about the llvm-commits
mailing list