forked from OSchip/llvm-project
[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:
parent
f898edd117
commit
fc2931375d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue