diff options
author | John McCall <rjmccall@apple.com> | 2011-06-09 19:46:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-06-09 19:46:27 +0000 |
commit | 729c35b6804a09e135d5c882160a035c3ff1fb24 (patch) | |
tree | 998815b27528825e7a07f6a96340af5eecb7fd0e /llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | |
parent | 9008377c2dd3340ce2bb5c7614a33e08c3002661 (diff) | |
download | bcm5719-llvm-729c35b6804a09e135d5c882160a035c3ff1fb24.tar.gz bcm5719-llvm-729c35b6804a09e135d5c882160a035c3ff1fb24.zip |
Teach the CallGraph to ignore calls to intrinsics.
llvm-svn: 132797
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index 725ab72f559..659ffab0c6f 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -245,8 +245,8 @@ bool CGPassManager::RefreshCallGraph(CallGraphSCC &CurSCC, for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) { - CallSite CS(cast<Value>(I)); - if (!CS || isa<DbgInfoIntrinsic>(I)) continue; + CallSite CS(cast<Value>(I)); + if (!CS || isa<IntrinsicInst>(I)) continue; // If this call site already existed in the callgraph, just verify it // matches up to expectations and remove it from CallSites. |