File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -795,17 +795,19 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
795795 // the given instruction was assessed.
796796 if (!PrintInstructionComments)
797797 return ;
798- InstructionCostDetailMap[I].CostBefore = Cost;
799- InstructionCostDetailMap[I].ThresholdBefore = Threshold;
798+ auto &CostDetail = InstructionCostDetailMap[I];
799+ CostDetail.CostBefore = Cost;
800+ CostDetail.ThresholdBefore = Threshold;
800801 }
801802
802803 void onInstructionAnalysisFinish (const Instruction *I) override {
803804 // This function is called to find new values of cost and threshold after
804805 // the instruction has been assessed.
805806 if (!PrintInstructionComments)
806807 return ;
807- InstructionCostDetailMap[I].CostAfter = Cost;
808- InstructionCostDetailMap[I].ThresholdAfter = Threshold;
808+ auto &CostDetail = InstructionCostDetailMap[I];
809+ CostDetail.CostAfter = Cost;
810+ CostDetail.ThresholdAfter = Threshold;
809811 }
810812
811813 bool isCostBenefitAnalysisEnabled () {
You can’t perform that action at this time.
0 commit comments