[llvm-exegesis] BenchmarkRunner::runConfiguration(): write small snippet to memory
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 7 May 2019 12:28:08 +0000 (12:28 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 7 May 2019 12:28:08 +0000 (12:28 +0000)
commit9bac7d8165dddb2953602e1b270efc989b321c40
treed14fd41691a3c13fd958394ea3bebb8fbc668074
parent0974688a42c9c605b91bf4b8bfa2baa26d3b180e
[llvm-exegesis] BenchmarkRunner::runConfiguration(): write small snippet to memory

It was previously writing this temporary snippet to file,
then reading it back, but leaving the tmp file in place.
This is both unefficient, and results in huge garbage pileup
in /tmp.

One would have thought it would have been caught during D60317..

llvm-svn: 360138
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp