diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-01-26 21:31:30 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-01-26 21:31:30 +0000 |
commit | 2cd455f36385eb6ed5c21ae7c52cb3d371810be3 (patch) | |
tree | f765b6b5bafdbcef141bd1200bce52bbcbfa52ab /lib | |
parent | e3039b6712a5b3464d43b34aeeb1c7a881c7cafc (diff) | |
download | external_llvm-2cd455f36385eb6ed5c21ae7c52cb3d371810be3.zip external_llvm-2cd455f36385eb6ed5c21ae7c52cb3d371810be3.tar.gz external_llvm-2cd455f36385eb6ed5c21ae7c52cb3d371810be3.tar.bz2 |
Remove dead code.
Functions containing indirectbr are marked NeverInline by analyzeBasicBlock(),
so there is no point in giving indirectbr special treatment in
CountCodeReductionForConstant. It is never called.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/InlineCost.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index 595d41c..ddf78a2 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/lib/Analysis/InlineCost.cpp @@ -31,9 +31,6 @@ unsigned InlineCostAnalyzer::FunctionInfo:: // Eliminating a switch is a big win, proportional to the number of edges // deleted. Reduction += (SI->getNumSuccessors()-1) * 40; - else if (isa<IndirectBrInst>(*UI)) - // Eliminating an indirect branch is a big win. - Reduction += 200; else if (CallInst *CI = dyn_cast<CallInst>(*UI)) { // Turning an indirect call into a direct call is a BIG win Reduction += CI->getCalledValue() == V ? 500 : 0; |