[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
This commit is contained in:
Simon Pilgrim 2018-09-10 10:45:04 +00:00
parent f898edd117
commit fc2931375d
1 changed files with 1 additions and 1 deletions

View File

@ -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;