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
This commit is contained in:
Chris Lattner 2003-08-31 00:45:13 +00:00
parent 7d8a86aa59
commit a15854c9fe

View File

@ -23,6 +23,12 @@ namespace {
struct SROA : public FunctionPass { struct SROA : public FunctionPass {
bool runOnFunction(Function &F); 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: private:
bool isSafeElementUse(Value *Ptr); bool isSafeElementUse(Value *Ptr);
bool isSafeUseOfAllocation(Instruction *User); bool isSafeUseOfAllocation(Instruction *User);