This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
If an instruction has latency 3 and throughput 1, should I write it asYes.
(define_insn_reservation "simple" 3 (eq_attr "memory" "none") "p0")
or
(define_insn_reservation "simple" 3 (eq_attr "memory" "none") "p0,nothing*2")
Are they equivalent?
They are different things. Latency is used for finding data ready delays (priorities used to order insns according their critical path length). When input data are ready for an insn, the reservations are checked to find that there are enough functional units to execute the insn. So there is no correlation between latency time and reservations with the compiler point of view.What happens when there are fewer reservation cycles than default latency?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |