From aff85ac552447aa8f95b3794e26b0207ee45ddff Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 24 Mar 2005 02:41:19 +0000 Subject: Simplify dead code into a fixme :) llvm-svn: 20800 --- llvm/lib/Analysis/IPA/GlobalsModRef.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'llvm/lib/Analysis/IPA/GlobalsModRef.cpp') diff --git a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp index 5a2f921ebf4..40700f9b6d3 100644 --- a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp @@ -280,19 +280,10 @@ void GlobalsModRef::AnalyzeSCC(std::vector &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::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 { -- cgit v1.2.3