[PATCH] D98577: [InlineCost] Compute the savings of switch statements and SROA in the cost benefit analysis
Liqiang Tao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 31 05:12:02 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd2d6720a93a2: [InlineCost] Remove TODO comment that consider other forms of savings in theā¦ (authored by taolq).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98577/new/
https://reviews.llvm.org/D98577
Files:
llvm/lib/Analysis/InlineCost.cpp
Index: llvm/lib/Analysis/InlineCost.cpp
===================================================================
--- llvm/lib/Analysis/InlineCost.cpp
+++ llvm/lib/Analysis/InlineCost.cpp
@@ -761,9 +761,6 @@
CurrentSavings += InlineConstants::InstrCost;
}
}
- // TODO: Consider other forms of savings like switch statements,
- // indirect calls becoming direct, SROACostSavings, LoadEliminationCost,
- // etc.
}
auto ProfileCount = CalleeBFI->getBlockProfileCount(&BB);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98577.334415.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210331/e6e64f8e/attachment.bin>
More information about the llvm-commits
mailing list