@@ -716,15 +716,15 @@ void processFuncStatsChanges(SILFunction *F, FunctionStat &OldStat,
716
716
// TODO: handle cases where a function got smaller.
717
717
if ((SILStatsDumpAll &&
718
718
(DeltaBlockCount != 0.0 || OldStat.BlockCount == 0 )) ||
719
- (abs (DeltaBlockCount) > FuncBlockCountDeltaThreshold &&
719
+ (std:: abs (DeltaBlockCount) > FuncBlockCountDeltaThreshold &&
720
720
OldStat.BlockCount > FuncBlockCountMinThreshold)) {
721
721
stats_os () << nl.get ();
722
722
printCounterChange (" function" , " block" , DeltaBlockCount, OldStat.BlockCount ,
723
723
NewStat.BlockCount , Ctx, F->getName ());
724
724
}
725
725
726
726
if ((SILStatsDumpAll && (DeltaInstCount != 0.0 || OldStat.InstCount == 0 )) ||
727
- (abs (DeltaInstCount) > FuncInstCountDeltaThreshold &&
727
+ (std:: abs (DeltaInstCount) > FuncInstCountDeltaThreshold &&
728
728
OldStat.InstCount > FuncInstCountMinThreshold)) {
729
729
stats_os () << nl.get ();
730
730
printCounterChange (" function" , " inst" , DeltaInstCount, OldStat.InstCount ,
@@ -760,7 +760,7 @@ void processModuleStatsChanges(ModuleStat &OldStat, ModuleStat &NewStat,
760
760
if ((SILStatsDumpAll &&
761
761
(DeltaBlockCount != 0.0 ||
762
762
isFirstTimeData (OldStat.BlockCount , NewStat.BlockCount ))) ||
763
- (abs (DeltaBlockCount) > BlockCountDeltaThreshold)) {
763
+ (std:: abs (DeltaBlockCount) > BlockCountDeltaThreshold)) {
764
764
stats_os () << nl.get ();
765
765
printCounterChange (" module" , " block" , DeltaBlockCount, OldStat.BlockCount ,
766
766
NewStat.BlockCount , Ctx);
@@ -771,7 +771,7 @@ void processModuleStatsChanges(ModuleStat &OldStat, ModuleStat &NewStat,
771
771
if ((SILStatsDumpAll &&
772
772
(DeltaInstCount != 0.0 ||
773
773
isFirstTimeData (OldStat.InstCount , NewStat.InstCount ))) ||
774
- (abs (DeltaInstCount) > InstCountDeltaThreshold)) {
774
+ (std:: abs (DeltaInstCount) > InstCountDeltaThreshold)) {
775
775
stats_os () << nl.get ();
776
776
printCounterChange (" module" , " inst" , DeltaInstCount, OldStat.InstCount ,
777
777
NewStat.InstCount , Ctx);
@@ -782,7 +782,7 @@ void processModuleStatsChanges(ModuleStat &OldStat, ModuleStat &NewStat,
782
782
if ((SILStatsDumpAll &&
783
783
(DeltaFunctionCount != 0.0 ||
784
784
isFirstTimeData (OldStat.FunctionCount , NewStat.FunctionCount ))) ||
785
- (abs (DeltaFunctionCount) > FunctionCountDeltaThreshold)) {
785
+ (std:: abs (DeltaFunctionCount) > FunctionCountDeltaThreshold)) {
786
786
stats_os () << nl.get ();
787
787
printCounterChange (" module" , " functions" , DeltaFunctionCount,
788
788
OldStat.FunctionCount , NewStat.FunctionCount , Ctx);
@@ -791,9 +791,9 @@ void processModuleStatsChanges(ModuleStat &OldStat, ModuleStat &NewStat,
791
791
// Print delta for the used memory only if it is above a threshold or we are
792
792
// asked to dump all changes.
793
793
if ((SILStatsDumpAll &&
794
- (abs (DeltaUsedMemory) > UsedMemoryMinDeltaThreshold ||
794
+ (std:: abs (DeltaUsedMemory) > UsedMemoryMinDeltaThreshold ||
795
795
isFirstTimeData (OldStat.UsedMemory , NewStat.UsedMemory ))) ||
796
- (abs (DeltaUsedMemory) > UsedMemoryDeltaThreshold)) {
796
+ (std:: abs (DeltaUsedMemory) > UsedMemoryDeltaThreshold)) {
797
797
stats_os () << nl.get ();
798
798
printCounterChange (" module" , " memory" , DeltaUsedMemory, OldStat.UsedMemory ,
799
799
NewStat.UsedMemory , Ctx);
0 commit comments