Skip chash computation in insert/emplace if the unconstrained hash matches.

llvm-svn: 276549
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 1a06fe5f7ea47112a5e8ac6e0cc471ef96759591
diff --git a/benchmarks/GenerateInput.hpp b/benchmarks/GenerateInput.hpp
index 5ddda76..49fb48d 100644
--- a/benchmarks/GenerateInput.hpp
+++ b/benchmarks/GenerateInput.hpp
@@ -130,4 +130,11 @@
     return inputs;
 }
 
+inline std::vector<const char*> getRandomCStringInputs(size_t N) {
+    static std::vector<std::string> inputs = getRandomStringInputs(N);
+    std::vector<const char*> cinputs;
+    for (auto const& str : inputs)
+        cinputs.push_back(str.c_str());
+    return cinputs;
+}
 #endif // BENCHMARK_GENERATE_INPUT_HPP