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 {
795
795
// the given instruction was assessed.
796
796
if (!PrintInstructionComments)
797
797
return ;
798
- InstructionCostDetailMap[I].CostBefore = Cost;
799
- InstructionCostDetailMap[I].ThresholdBefore = Threshold;
798
+ auto &CostDetail = InstructionCostDetailMap[I];
799
+ CostDetail.CostBefore = Cost;
800
+ CostDetail.ThresholdBefore = Threshold;
800
801
}
801
802
802
803
void onInstructionAnalysisFinish (const Instruction *I) override {
803
804
// This function is called to find new values of cost and threshold after
804
805
// the instruction has been assessed.
805
806
if (!PrintInstructionComments)
806
807
return ;
807
- InstructionCostDetailMap[I].CostAfter = Cost;
808
- InstructionCostDetailMap[I].ThresholdAfter = Threshold;
808
+ auto &CostDetail = InstructionCostDetailMap[I];
809
+ CostDetail.CostAfter = Cost;
810
+ CostDetail.ThresholdAfter = Threshold;
809
811
}
810
812
811
813
bool isCostBenefitAnalysisEnabled () {
You can’t perform that action at this time.
0 commit comments