diff --git a/llvm/test/tools/llvm-profgen/profile-density.test b/llvm/test/tools/llvm-profgen/profile-density.test --- a/llvm/test/tools/llvm-profgen/profile-density.test +++ b/llvm/test/tools/llvm-profgen/profile-density.test @@ -4,7 +4,7 @@ ; RUN: llvm-profgen --format=text --unsymbolized-profile=%S/Inputs/profile-density-cs.raw.prof --binary=%S/Inputs/inline-noprobe2.perfbin --output=%t3 --show-density -hot-function-density-threshold=1 &> %t4 ; RUN: FileCheck %s --input-file %t4 --check-prefix=CHECK-DENSITY-CS -;CHECK-DENSITY: AutoFDO is estimated to optimize better with 3.1x more samples. Please consider increasing sampling rate or profiling for longer duration to get more samples. +;CHECK-DENSITY: Sample PGO is estimated to optimize better with 3.1x more samples. Please consider increasing sampling rate or profiling for longer duration to get more samples. ;CHECK-DENSITY: Minimum profile density for hot functions with top 99.00% total samples: 3.2 ;CHECK-DENSITY-CS: Minimum profile density for hot functions with top 99.00% total samples: 128.3 diff --git a/llvm/tools/llvm-profgen/ProfileGenerator.cpp b/llvm/tools/llvm-profgen/ProfileGenerator.cpp --- a/llvm/tools/llvm-profgen/ProfileGenerator.cpp +++ b/llvm/tools/llvm-profgen/ProfileGenerator.cpp @@ -183,7 +183,7 @@ "set too low. Please check your command.\n"; else if (Density < HotFunctionDensityThreshold) WithColor::warning() - << "AutoFDO is estimated to optimize better with " + << "Sample PGO is estimated to optimize better with " << format("%.1f", HotFunctionDensityThreshold / Density) << "x more samples. Please consider increasing sampling rate or " "profiling for longer duration to get more samples.\n";