mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Simplify dead code into a fixme :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4417f98e5
commit
62da315c85
@ -280,19 +280,10 @@ void GlobalsModRef::AnalyzeSCC(std::vector<CallGraphNode *> &SCC) {
|
||||
ModRefBehavior MRB =
|
||||
AliasAnalysis::getModRefBehavior(Callee, CallSite());
|
||||
if (MRB != DoesNotAccessMemory) {
|
||||
if (MRB == OnlyReadsMemory && CalleeFR) {
|
||||
// This reads memory, but we don't know what, just say that it
|
||||
// reads all globals.
|
||||
for (std::map<GlobalValue*, unsigned>::iterator
|
||||
GI = CalleeFR->GlobalInfo.begin(),
|
||||
E = CalleeFR->GlobalInfo.end();
|
||||
GI != E; ++GI)
|
||||
FR.GlobalInfo[GI->first] |= Ref;
|
||||
|
||||
} else {
|
||||
CallsExternal = true;
|
||||
break;
|
||||
}
|
||||
// FIXME: could make this more aggressive for functions that just
|
||||
// read memory. We should just say they read all globals.
|
||||
CallsExternal = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user