[PATCH] D73662: [llvm][NFC] Rename CallAnalyzer::onCommonInstructionSimplification
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 21:19:23 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG14a16fae434a: [llvm][NFC] Rename CallAnalyzer::onCommonInstructionSimplification (authored by mtrofin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73662/new/
https://reviews.llvm.org/D73662
Files:
llvm/lib/Analysis/InlineCost.cpp
Index: llvm/lib/Analysis/InlineCost.cpp
===================================================================
--- llvm/lib/Analysis/InlineCost.cpp
+++ llvm/lib/Analysis/InlineCost.cpp
@@ -185,7 +185,7 @@
/// Called to account for any other instruction not specifically accounted
/// for.
- virtual void onCommonInstructionSimplification() {}
+ virtual void onMissedSimplification() {}
/// Start accounting potential benefits due to SROA for the given alloca.
virtual void onInitializeSROAArg(AllocaInst *Arg) {}
@@ -502,7 +502,7 @@
addCost(SwitchCost, (int64_t)CostUpperBound);
}
- void onCommonInstructionSimplification() override {
+ void onMissedSimplification() override {
addCost(InlineConstants::InstrCost);
}
@@ -1761,7 +1761,7 @@
if (Base::visit(&*I))
++NumInstructionsSimplified;
else
- onCommonInstructionSimplification();
+ onMissedSimplification();
using namespace ore;
// If the visit this instruction detected an uninlinable pattern, abort.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73662.241346.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200130/e11118d3/attachment.bin>
More information about the llvm-commits
mailing list