[llvm] [CodeLayout] Faster basic block reordering, ext-tsp (PR #68617)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 15:21:51 PDT 2023
================
@@ -725,6 +734,7 @@ class ExtTSPImpl {
return std::make_tuple(A1->Id, B1->Id) < std::make_tuple(A2->Id, B2->Id);
};
+ double PrevScore = 1e9;
----------------
MaskRay wrote:
This should use a sentinel value instead of a magic 1e9.
You can use `std::optional<double>` for an absent value.
https://github.com/llvm/llvm-project/pull/68617
More information about the llvm-commits
mailing list