[PATCH] D135463: [FuncSpec] Do not generate multiple copies for identical specializations.

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 07:02:00 PDT 2022


chill added inline comments.


================
Comment at: llvm/include/llvm/Transforms/Utils/SCCPSolver.h:54
+  friend hash_code hash_value(const ArgInfo &Info) {
+    return hash_value(std::make_pair(Info.Formal, Info.Actual));
+  }
----------------
I don't really see the point in creating the temporary pair.

    return hash_combine(Info.Formal, Info.Actual)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135463/new/

https://reviews.llvm.org/D135463



More information about the llvm-commits mailing list