[llvm] [llvm-mca] Add command line option -call-latency (PR #92958)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 13:29:41 PDT 2024


================
@@ -33,7 +33,7 @@ InstrBuilder::InstrBuilder(const llvm::MCSubtargetInfo &sti,
                            const llvm::MCInstrAnalysis *mcia,
                            const mca::InstrumentManager &im)
     : STI(sti), MCII(mcii), MRI(mri), MCIA(mcia), IM(im), FirstCallInst(true),
-      FirstReturnInst(true) {
+      FirstReturnInst(true), CallLatency(100U) {
----------------
michaelmaitland wrote:

Should we pass `CallLatency` when we construct the InstrBuilder and remove the call to `setCallLatency`?

https://github.com/llvm/llvm-project/pull/92958


More information about the llvm-commits mailing list