[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
================
@@ -230,6 +231,13 @@ static void computeMaxLatency(InstrDesc &ID, const MCInstrDesc &MCDesc,
}
int Latency = MCSchedModel::computeInstrLatency(STI, SCDesc);
+
+ // If `UseLoadLatency` is set, we use the value in `MCSchedModel::LoadLatency`
+ // for load instructions.
+ if (MCDesc.mayLoad() && UseLoadLatency) {
+ const auto &SM = STI.getSchedModel();
----------------
mshockwave wrote:
please spell out the type (rather than using auto) here.
https://github.com/llvm/llvm-project/pull/94566
More information about the llvm-commits
mailing list