summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-09-10 10:45:04 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-09-10 10:45:04 +0000
commitfc2931375d6ca8ab4d45cb820d91c7c88469f012 (patch)
tree9062f62066ead0c8cc40683eb6d26c02918a95f4 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
parentf898edd117daec42762c19dd733189307414d88a (diff)
downloadbcm5719-llvm-fc2931375d6ca8ab4d45cb820d91c7c88469f012.tar.gz
bcm5719-llvm-fc2931375d6ca8ab4d45cb820d91c7c88469f012.zip
[llvm-exegesis] Ignore double spaced separators in asm strings
Some asm has double spaces between operands, the deserializer was keeping these empty split pieces, causing assertions later on: 'ADC16mi RDI i_0x1x i_0x0x i_0x1x' llvm-svn: 341799
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 33ad65075d9..77adb2f1e38 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -60,7 +60,7 @@ static llvm::StringRef
deserialize(const exegesis::BenchmarkResultContext &Context,
llvm::StringRef String, llvm::MCInst &Value) {
llvm::SmallVector<llvm::StringRef, 8> Pieces;
- String.split(Pieces, " ");
+ String.split(Pieces, " ", /* MaxSplit */ -1, /* KeepEmpty */ false);
if (Pieces.empty())
return "Invalid Instruction";
bool ProcessOpcode = true;
OpenPOWER on IntegriCloud