llvm.org GIT mirror llvm / a15854c
ScalarRepl does not modify the CFG. Say so! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8243 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2121
2222 struct SROA : public FunctionPass {
2323 bool runOnFunction(Function &F);
24
25 // getAnalysisUsage - This pass does not require any passes, but we know it
26 // will not alter the CFG, so say so.
27 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
28 AU.setPreservesCFG();
29 }
2430
2531 private:
2632 bool isSafeElementUse(Value *Ptr);