@@ -662,10 +662,10 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
662
662
// just become a regular analysis dependency.
663
663
OptimizationRemarkEmitter ORE (Caller);
664
664
665
- auto OIC = shouldInline (CB, GetInlineCost, ORE);
665
+ auto InlDec = shouldInline (CB, GetInlineCost, ORE);
666
666
// If the policy determines that we should inline this function,
667
667
// delete the call instead.
668
- if (!OIC )
668
+ if (!InlDec )
669
669
continue ;
670
670
671
671
// If this call site is dead and it is to a readonly function, we should
@@ -692,7 +692,7 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
692
692
InsertLifetime, AARGetter, ImportedFunctionsStats);
693
693
if (!IR.isSuccess ()) {
694
694
setInlineRemark (CB, std::string (IR.getFailureReason ()) + " ; " +
695
- inlineCostStr (OIC .getCost ()));
695
+ inlineCostStr (InlDec .getCost ()));
696
696
ORE.emit ([&]() {
697
697
return OptimizationRemarkMissed (DEBUG_TYPE, " NotInlined" , DLoc,
698
698
Block)
@@ -704,7 +704,7 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
704
704
}
705
705
++NumInlined;
706
706
707
- emitInlinedInto (ORE, DLoc, Block, *Callee, *Caller, OIC .getCost ());
707
+ emitInlinedInto (ORE, DLoc, Block, *Callee, *Caller, InlDec .getCost ());
708
708
709
709
// If inlining this function gave us any new call sites, throw them
710
710
// onto our worklist to process. They are useful inline candidates.
@@ -1069,9 +1069,9 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
1069
1069
continue ;
1070
1070
}
1071
1071
1072
- auto OIC = shouldInline (*CB, GetInlineCost, ORE);
1072
+ auto InlDec = shouldInline (*CB, GetInlineCost, ORE);
1073
1073
// Check whether we want to inline this callsite.
1074
- if (!OIC )
1074
+ if (!InlDec )
1075
1075
continue ;
1076
1076
1077
1077
// Setup the data structure used to plumb customization into the
@@ -1090,7 +1090,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
1090
1090
InlineResult IR = InlineFunction (*CB, IFI);
1091
1091
if (!IR.isSuccess ()) {
1092
1092
setInlineRemark (*CB, std::string (IR.getFailureReason ()) + " ; " +
1093
- inlineCostStr (OIC .getCost ()));
1093
+ inlineCostStr (InlDec .getCost ()));
1094
1094
ORE.emit ([&]() {
1095
1095
return OptimizationRemarkMissed (DEBUG_TYPE, " NotInlined" , DLoc, Block)
1096
1096
<< NV (" Callee" , &Callee) << " will not be inlined into "
@@ -1104,7 +1104,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
1104
1104
1105
1105
++NumInlined;
1106
1106
1107
- emitInlinedInto (ORE, DLoc, Block, Callee, F, OIC .getCost ());
1107
+ emitInlinedInto (ORE, DLoc, Block, Callee, F, InlDec .getCost ());
1108
1108
1109
1109
// Add any new callsites to defined functions to the worklist.
1110
1110
if (!IFI.InlinedCallSites .empty ()) {
0 commit comments