[llvm] TargetInstrInfo: make getOperandLatency return optional (NFC) (PR #73769)

Francesco Petrogalli via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 00:31:25 PST 2023


================
@@ -173,11 +173,14 @@ unsigned TargetSchedModel::computeOperandLatency(
   const MachineInstr *DefMI, unsigned DefOperIdx,
   const MachineInstr *UseMI, unsigned UseOperIdx) const {
 
+  const unsigned InstrLatency = computeInstrLatency(DefMI);
----------------
fpetrogalli wrote:

Please mention in the description of the PR (that will end up in the commit message) that the interface change was inspired by the refactoring you wanted to do TargetSchedModel::computeOperandLatency.

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


More information about the llvm-commits mailing list