[llvm] [llvm-mca] Add command line option `-use-load-latency` (PR #94566)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 15:09:17 PDT 2024
================
@@ -66,7 +66,8 @@ Error MCATestBase::runBaselineMCA(json::Object &Result, ArrayRef<MCInst> Insts,
// Default InstrumentManager
auto IM = std::make_unique<mca::InstrumentManager>(*STI, *MCII);
- mca::InstrBuilder IB(*STI, *MCII, *MRI, MCIA.get(), *IM, /*CallLatency=*/100);
+ mca::InstrBuilder IB(*STI, *MCII, *MRI, MCIA.get(), *IM, /*CallLatency=*/100,
+ /*UseLoadLatency*/ false);
----------------
mshockwave wrote:
Per https://www.llvm.org/docs/CodingStandards.html#comment-formatting :
```suggestion
/*UseLoadLatency=*/false);
```
https://github.com/llvm/llvm-project/pull/94566
More information about the llvm-commits
mailing list