File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
mlir/include/mlir/Dialect/Polynomial/IR Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Monomial {
58
58
// Prints polynomial to 'os'.
59
59
void print (raw_ostream &os) const ;
60
60
61
- friend ::llvm::hash_code hash_value (const Monomial& arg);
61
+ friend ::llvm::hash_code hash_value (const Monomial & arg);
62
62
63
63
public:
64
64
APInt coefficient;
@@ -120,8 +120,9 @@ inline ::llvm::hash_code hash_value(Polynomial arg) {
120
120
return ::llvm::hash_value (arg.terms );
121
121
}
122
122
123
- inline ::llvm::hash_code hash_value (const Monomial& arg) {
124
- return ::llvm::hash_value (arg.coefficient ) ^ ::llvm::hash_value (arg.exponent );
123
+ inline ::llvm::hash_code hash_value (const Monomial &arg) {
124
+ return llvm::hash_combine (::llvm::hash_value (arg.coefficient ),
125
+ ::llvm::hash_value (arg.exponent));
125
126
}
126
127
127
128
inline raw_ostream &operator <<(raw_ostream &os, Polynomial polynomial) {
You can’t perform that action at this time.
0 commit comments