[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:27 PST 2023


================
@@ -173,11 +173,14 @@ unsigned TargetSchedModel::computeOperandLatency(
   const MachineInstr *DefMI, unsigned DefOperIdx,
----------------
fpetrogalli wrote:

You may want to update the comment describing this interface, explaining why we do not need `std::optional` here.

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


More information about the llvm-commits mailing list