[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


================
@@ -124,7 +125,8 @@ TEST_F(X86TestBase, TestInstructionRecycling) {
   // 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:

ditto

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


More information about the llvm-commits mailing list