ΒΆdouble calcExtTspScore(
    const std::vector<uint64_t>& Order,
    const std::vector<uint64_t>& NodeSizes,
    const std::vector<uint64_t>& NodeCounts,
    const DenseMap<std::pair<uint64_t, uint64_t>,
                   uint64_t>& EdgeCounts)

Description

Estimate the "quality" of a given node order in CFG. The higher the score, the better the order is. The score is designed to reflect the locality of the given order, which is anti-correlated with the number of I-cache misses in a typical execution of the function.

Declared at: llvm/include/llvm/Transforms/Utils/CodeLayout.h:43

Parameters

const std::vector<uint64_t>& Order
const std::vector<uint64_t>& NodeSizes
const std::vector<uint64_t>& NodeCounts
const DenseMap<std::pair<uint64_t, uint64_t>, uint64_t>& EdgeCounts