diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2015-04-14 15:52:57 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2015-04-14 15:52:57 +0000 |
commit | 7a20ed762761c93f517e0a2c8a809ba57ab4831a (patch) | |
tree | e7a3ab7b9a956eb9707c280d6e3ee428747c6e5d /llvm/lib/Analysis/BranchProbabilityInfo.cpp | |
parent | fb37cfa346017a10157a702db90a4771d547cf07 (diff) | |
download | llvm-7a20ed762761c93f517e0a2c8a809ba57ab4831a.zip llvm-7a20ed762761c93f517e0a2c8a809ba57ab4831a.tar.gz llvm-7a20ed762761c93f517e0a2c8a809ba57ab4831a.tar.bz2 |
Improve RefreshCallGraph to remove invalid call graph edge.
With commit r219944, InstCombine can now turn a sqrtl into a llvm.fabs.f64.
The call graph edge originally representing the call to sqrtl becomes invalid.
This patch modifies CGPassManager::RefreshCallGraph() to remove the invalid
call graph edge, which can triggers an assert in
CallGraphNode::addCalledFunction().
Phabricator Review: http://reviews.llvm.org/D7705
Patch by Lawrence Hu <lawrence@codeaurora.org>.
llvm-svn: 234902
Diffstat (limited to 'llvm/lib/Analysis/BranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions