mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
7d8a86aa59
commit
a15854c9fe
@ -23,6 +23,12 @@ namespace {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user