@@ -334,14 +334,10 @@ struct ExprMapKeyType {
334
334
this ->indices == that.indices ;
335
335
}
336
336
bool operator <(const ExprMapKeyType & that) const {
337
- if (this ->opcode != that.opcode ) return this ->opcode < that.opcode ;
338
- if (this ->operands != that.operands ) return this ->operands < that.operands ;
339
- if (this ->subclassdata != that.subclassdata )
340
- return this ->subclassdata < that.subclassdata ;
341
- if (this ->subclassoptionaldata != that.subclassoptionaldata )
342
- return this ->subclassoptionaldata < that.subclassoptionaldata ;
343
- if (this ->indices != that.indices ) return this ->indices < that.indices ;
344
- return false ;
337
+ return std::tie (opcode, operands, subclassdata, subclassoptionaldata,
338
+ indices) <
339
+ std::tie (that.opcode , that.operands , that.subclassdata ,
340
+ that.subclassoptionaldata , that.indices );
345
341
}
346
342
347
343
bool operator !=(const ExprMapKeyType& that) const {
@@ -369,17 +365,10 @@ struct InlineAsmKeyType {
369
365
this ->asm_dialect == that.asm_dialect ;
370
366
}
371
367
bool operator <(const InlineAsmKeyType& that) const {
372
- if (this ->asm_string != that.asm_string )
373
- return this ->asm_string < that.asm_string ;
374
- if (this ->constraints != that.constraints )
375
- return this ->constraints < that.constraints ;
376
- if (this ->has_side_effects != that.has_side_effects )
377
- return this ->has_side_effects < that.has_side_effects ;
378
- if (this ->is_align_stack != that.is_align_stack )
379
- return this ->is_align_stack < that.is_align_stack ;
380
- if (this ->asm_dialect != that.asm_dialect )
381
- return this ->asm_dialect < that.asm_dialect ;
382
- return false ;
368
+ return std::tie (asm_string, constraints, has_side_effects, is_align_stack,
369
+ asm_dialect) <
370
+ std::tie (that.asm_string , that.constraints , that.has_side_effects ,
371
+ that.is_align_stack , that.asm_dialect );
383
372
}
384
373
385
374
bool operator !=(const InlineAsmKeyType& that) const {
0 commit comments