diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-24 02:41:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-24 02:41:19 +0000 |
commit | 62da315c859eb20e0ad38c034f71901ac6558d4d (patch) | |
tree | 9c29158c6143fca3eaae4926ec6fde8d927168f8 /lib/Analysis/IPA/GlobalsModRef.cpp | |
parent | c4417f98e565d136d9a11766f7d0fbd872ca5b9d (diff) | |
download | external_llvm-62da315c859eb20e0ad38c034f71901ac6558d4d.zip external_llvm-62da315c859eb20e0ad38c034f71901ac6558d4d.tar.gz external_llvm-62da315c859eb20e0ad38c034f71901ac6558d4d.tar.bz2 |
Simplify dead code into a fixme :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/GlobalsModRef.cpp')
-rw-r--r-- | lib/Analysis/IPA/GlobalsModRef.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index 5a2f921..40700f9 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -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 { |