@@ -263,37 +263,35 @@ struct IRInstructionData
263263 OperTypes.push_back (V->getType ());
264264
265265 if (isa<CmpInst>(ID.Inst ))
266- return llvm::hash_combine (
267- llvm::hash_value (ID.Inst ->getOpcode ()),
268- llvm::hash_value (ID.Inst ->getType ()),
269- llvm::hash_value (ID.getPredicate ()),
270- llvm::hash_combine_range (OperTypes.begin (), OperTypes.end ()));
266+ return llvm::hash_combine (llvm::hash_value (ID.Inst ->getOpcode ()),
267+ llvm::hash_value (ID.Inst ->getType ()),
268+ llvm::hash_value (ID.getPredicate ()),
269+ llvm::hash_combine_range (OperTypes));
271270
272271 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(ID.Inst )) {
273272 // To hash intrinsics, we use the opcode, and types like the other
274273 // instructions, but also, the Intrinsic ID, and the Name of the
275274 // intrinsic.
276275 Intrinsic::ID IntrinsicID = II->getIntrinsicID ();
277- return llvm::hash_combine (
278- llvm::hash_value (ID.Inst ->getOpcode ()),
279- llvm::hash_value (ID. Inst -> getType ()), llvm::hash_value (IntrinsicID),
280- llvm::hash_value (*ID.CalleeName ),
281- llvm::hash_combine_range (OperTypes. begin (), OperTypes. end () ));
276+ return llvm::hash_combine (llvm::hash_value (ID. Inst -> getOpcode ()),
277+ llvm::hash_value (ID.Inst ->getType ()),
278+ llvm::hash_value (IntrinsicID),
279+ llvm::hash_value (*ID.CalleeName ),
280+ llvm::hash_combine_range (OperTypes));
282281 }
283282
284283 if (isa<CallInst>(ID.Inst )) {
285284 std::string FunctionName = *ID.CalleeName ;
286- return llvm::hash_combine (
287- llvm::hash_value (ID.Inst ->getOpcode ()),
288- llvm::hash_value (ID.Inst ->getType ()),
289- llvm::hash_value (ID. Inst -> getType ()), llvm::hash_value (FunctionName),
290- llvm::hash_combine_range (OperTypes. begin (), OperTypes. end () ));
285+ return llvm::hash_combine (llvm::hash_value (ID. Inst -> getOpcode ()),
286+ llvm::hash_value (ID.Inst ->getType ()),
287+ llvm::hash_value (ID.Inst ->getType ()),
288+ llvm::hash_value (FunctionName),
289+ llvm::hash_combine_range (OperTypes));
291290 }
292291
293- return llvm::hash_combine (
294- llvm::hash_value (ID.Inst ->getOpcode ()),
295- llvm::hash_value (ID.Inst ->getType ()),
296- llvm::hash_combine_range (OperTypes.begin (), OperTypes.end ()));
292+ return llvm::hash_combine (llvm::hash_value (ID.Inst ->getOpcode ()),
293+ llvm::hash_value (ID.Inst ->getType ()),
294+ llvm::hash_combine_range (OperTypes));
297295 }
298296
299297 IRInstructionDataList *IDL = nullptr ;
0 commit comments