[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


================
@@ -202,24 +204,25 @@ class InstrItineraryData {
   /// Compute and return the use operand latency of a given itinerary
   /// class and operand index if the value is produced by an instruction of the
   /// specified itinerary class and def operand index.
----------------
fpetrogalli wrote:

Here too, explain why we want to use optional

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


More information about the llvm-commits mailing list