summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ProfileData/InstrProfTest.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-30 01:37:32 +0000
committerXinliang David Li <davidxl@google.com>2016-01-30 01:37:32 +0000
commitfe28ccc98f2ce3970a7dd6ba4d09536ba2c3b472 (patch)
treef51cdf10064d5ea5eed46225be7be1aa1111f409 /llvm/unittests/ProfileData/InstrProfTest.cpp
parent1d0300777436cf82a2d51d34dcd34161010b7bfe (diff)
downloadbcm5719-llvm-fe28ccc98f2ce3970a7dd6ba4d09536ba2c3b472.tar.gz
bcm5719-llvm-fe28ccc98f2ce3970a7dd6ba4d09536ba2c3b472.zip
Further reduce test time
llvm-svn: 259285
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index a65a7f01ec0..3a881a5c906 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -713,7 +713,7 @@ TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_module_test) {
TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_compression_test) {
std::vector<std::string> FuncNames1;
std::vector<std::string> FuncNames2;
- for (int I = 0; I < 10 * 1024; I++) {
+ for (int I = 0; I < 128; I++) {
std::string str;
raw_string_ostream OS(str);
OS << "func_" << I;
@@ -758,15 +758,11 @@ TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_compression_test) {
ASSERT_EQ(StringRef("func_0"), R);
R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames1[1]));
ASSERT_EQ(StringRef("fooooooooooooooo_0"), R);
- R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames1[998]));
- ASSERT_EQ(StringRef("func_499"), R);
- R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames1[999]));
- ASSERT_EQ(StringRef("fooooooooooooooo_499"), R);
R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames2[100]));
ASSERT_EQ(StringRef("BAR_50"), R);
R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames2[101]));
ASSERT_EQ(StringRef("BlahblahBlahblahBar_50"), R);
- for (int I = 0; I < 10 * 1024; I++) {
+ for (int I = 0; I < 128; I++) {
std::string N[4];
N[0] = FuncNames1[2 * I];
N[1] = FuncNames1[2 * I + 1];
OpenPOWER on IntegriCloud