Does LLVM have Instruction Performance Model?

Hi,

    Does LLVM define some performance model for each type of instructions? I mean the cost or latency for executing each type of instruction.

    Thanks a lot!

    Best,

Linhai

Hi,

there is a rather basic CostModelAnalysis.

It gives you a cost estimate, where higher numbers generally mean less throughput. See also other discussions on this list regarding how to use it 1.

This is the only model I’m aware of. I’d be interested myself whether there are others.

Cheers,
Jonas

Thanks a lot! Let me take a look at these! Best, Linhai