MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / default

Method default

src/debug_utils/cost_model.rs:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27impl Default for CostModel {
28 fn default() -> Self {
29 // These numbers come from LLVM's RegAllocScore.cpp.
30 Self {
31 load_cost: 4.0,
32 store_cost: 1.0,
33 move_cost: 0.2,
34 remat_cost: 1.0,
35 }
36 }
37}
38
39impl CostModel {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected