@@ -118,8 +118,9 @@ class CompressInstEmitter {
118
118
119
119
bool IsCompressOnly;
120
120
CompressPat (const CodeGenInstruction &S, const CodeGenInstruction &D,
121
- std::vector<const Record *> RF, IndexedMap<OpData> &SourceMap,
122
- IndexedMap<OpData> &DestMap, bool IsCompressOnly)
121
+ std::vector<const Record *> RF,
122
+ const IndexedMap<OpData> &SourceMap,
123
+ const IndexedMap<OpData> &DestMap, bool IsCompressOnly)
123
124
: Source(S), Dest(D), PatReqFeatures(std::move(RF)),
124
125
SourceOperandMap (SourceMap), DestOperandMap(DestMap),
125
126
IsCompressOnly(IsCompressOnly) {}
@@ -516,9 +517,9 @@ void CompressInstEmitter::evaluateCompressPat(const Record *Rec) {
516
517
return R->getValueAsBit (" AssemblerMatcherPredicate" );
517
518
});
518
519
519
- CompressPatterns.push_back ( CompressPat (
520
- SourceInst, DestInst, std::move (PatReqFeatures), SourceOperandMap,
521
- DestOperandMap, Rec->getValueAsBit (" isCompressOnly" ) ));
520
+ CompressPatterns.emplace_back (SourceInst, DestInst, std::move (PatReqFeatures),
521
+ SourceOperandMap, DestOperandMap ,
522
+ Rec->getValueAsBit (" isCompressOnly" ));
522
523
}
523
524
524
525
static void
0 commit comments