mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
Update the docs of the cost model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -8,9 +8,12 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// This file defines the cost model analysis. It provides a very basic cost
|
// This file defines the cost model analysis. It provides a very basic cost
|
||||||
// estimation for LLVM-IR. The cost result can be thought of as cycles, but it
|
// estimation for LLVM-IR. This analysis uses the services of the codegen
|
||||||
// is really unit-less. The estimated cost is ment to be used for comparing
|
// to approximate the cost of any IR instruction when lowered to machine
|
||||||
// alternatives.
|
// instructions. The cost results are unit-less and the cost number represents
|
||||||
|
// the throughput of the machine assuming that all loads hit the cache, all
|
||||||
|
// branches are predicted, etc. The cost numbers can be added in order to
|
||||||
|
// compare two or more transformation alternatives.
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user