()
| 26 | |
| 27 | impl 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 | |
| 39 | impl CostModel { |
nothing calls this directly
no outgoing calls
no test coverage detected