@@ -264,7 +264,8 @@ struct TypeInfer {
264
264
bool MergeInTypeInfo (TypeSetByHwMode &Out, MVT::SimpleValueType InVT) const {
265
265
return MergeInTypeInfo (Out, TypeSetByHwMode (InVT));
266
266
}
267
- bool MergeInTypeInfo (TypeSetByHwMode &Out, ValueTypeByHwMode InVT) const {
267
+ bool MergeInTypeInfo (TypeSetByHwMode &Out,
268
+ const ValueTypeByHwMode &InVT) const {
268
269
return MergeInTypeInfo (Out, TypeSetByHwMode (InVT));
269
270
}
270
271
@@ -841,7 +842,8 @@ class TreePatternNode : public RefCountedBase<TreePatternNode> {
841
842
TreePattern &TP);
842
843
bool UpdateNodeType (unsigned ResNo, MVT::SimpleValueType InTy,
843
844
TreePattern &TP);
844
- bool UpdateNodeType (unsigned ResNo, ValueTypeByHwMode InTy, TreePattern &TP);
845
+ bool UpdateNodeType (unsigned ResNo, const ValueTypeByHwMode &InTy,
846
+ TreePattern &TP);
845
847
846
848
// Update node type with types inferred from an instruction operand or result
847
849
// def from the ins/outs lists.
@@ -996,7 +998,7 @@ inline bool TreePatternNode::UpdateNodeType(unsigned ResNo,
996
998
}
997
999
998
1000
inline bool TreePatternNode::UpdateNodeType (unsigned ResNo,
999
- ValueTypeByHwMode InTy,
1001
+ const ValueTypeByHwMode & InTy,
1000
1002
TreePattern &TP) {
1001
1003
TypeSetByHwMode VTS (InTy);
1002
1004
TP.getInfer ().expandOverloads (VTS);
0 commit comments