david-xl wrote: Making the interfaces to use BlockFrequency consistently is good, but having programming convenience to directly assign from or compare with uint64_t is also handy. Perhaps add member functions? https://github.com/llvm/llvm-project/pull/68266