[llvm] 3dbc612 - [llvm][NFC] Rename variable as per https://reviews.llvm.org/D79215
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 16:32:45 PDT 2020
Author: Mircea Trofin
Date: 2020-05-01T16:30:41-07:00
New Revision: 3dbc612cf27327ef39cbb8ee8f69957e85a4e22e
URL: https://github.com/llvm/llvm-project/commit/3dbc612cf27327ef39cbb8ee8f69957e85a4e22e
DIFF: https://github.com/llvm/llvm-project/commit/3dbc612cf27327ef39cbb8ee8f69957e85a4e22e.diff
LOG: [llvm][NFC] Rename variable as per https://reviews.llvm.org/D79215
Operator error - performed the rename and didn't save.
Added:
Modified:
llvm/lib/Transforms/IPO/Inliner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 0c7ed0860592..55ba92e0340c 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -662,10 +662,10 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
// just become a regular analysis dependency.
OptimizationRemarkEmitter ORE(Caller);
- auto OIC = shouldInline(CB, GetInlineCost, ORE);
+ auto InlDec = shouldInline(CB, GetInlineCost, ORE);
// If the policy determines that we should inline this function,
// delete the call instead.
- if (!OIC)
+ if (!InlDec)
continue;
// If this call site is dead and it is to a readonly function, we should
@@ -692,7 +692,7 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
InsertLifetime, AARGetter, ImportedFunctionsStats);
if (!IR.isSuccess()) {
setInlineRemark(CB, std::string(IR.getFailureReason()) + "; " +
- inlineCostStr(OIC.getCost()));
+ inlineCostStr(InlDec.getCost()));
ORE.emit([&]() {
return OptimizationRemarkMissed(DEBUG_TYPE, "NotInlined", DLoc,
Block)
@@ -704,7 +704,7 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
}
++NumInlined;
- emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, OIC.getCost());
+ emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, InlDec.getCost());
// If inlining this function gave us any new call sites, throw them
// onto our worklist to process. They are useful inline candidates.
@@ -1069,9 +1069,9 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
continue;
}
- auto OIC = shouldInline(*CB, GetInlineCost, ORE);
+ auto InlDec = shouldInline(*CB, GetInlineCost, ORE);
// Check whether we want to inline this callsite.
- if (!OIC)
+ if (!InlDec)
continue;
// Setup the data structure used to plumb customization into the
@@ -1090,7 +1090,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
InlineResult IR = InlineFunction(*CB, IFI);
if (!IR.isSuccess()) {
setInlineRemark(*CB, std::string(IR.getFailureReason()) + "; " +
- inlineCostStr(OIC.getCost()));
+ inlineCostStr(InlDec.getCost()));
ORE.emit([&]() {
return OptimizationRemarkMissed(DEBUG_TYPE, "NotInlined", DLoc, Block)
<< NV("Callee", &Callee) << " will not be inlined into "
@@ -1104,7 +1104,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
++NumInlined;
- emitInlinedInto(ORE, DLoc, Block, Callee, F, OIC.getCost());
+ emitInlinedInto(ORE, DLoc, Block, Callee, F, InlDec.getCost());
// Add any new callsites to defined functions to the worklist.
if (!IFI.InlinedCallSites.empty()) {
More information about the llvm-commits
mailing list