mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Intrinsics don't touch internal global variables
(unless passed one via a parameter), even if they are IntrWriteMem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -392,8 +392,10 @@ void GlobalsModRef::AnalyzeCallGraph(CallGraph &CG, Module &M) {
|
|||||||
FR.GlobalInfo[*GI] |= Ref;
|
FR.GlobalInfo[*GI] |= Ref;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Can't say anything useful.
|
FunctionEffect |= ModRef;
|
||||||
KnowNothing = true;
|
// Can't say anything useful unless it's an intrinsic - they don't
|
||||||
|
// read or write global variables of the kind considered here.
|
||||||
|
KnowNothing = !F->isIntrinsic();
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user