diff options
Diffstat (limited to 'include/llvm/MC/MCInstrItineraries.h')
-rw-r--r-- | include/llvm/MC/MCInstrItineraries.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/MCInstrItineraries.h b/include/llvm/MC/MCInstrItineraries.h index 05baddd..48316d0 100644 --- a/include/llvm/MC/MCInstrItineraries.h +++ b/include/llvm/MC/MCInstrItineraries.h @@ -95,7 +95,7 @@ struct InstrStage { /// operands are read and written. /// struct InstrItinerary { - unsigned NumMicroOps; ///< # of micro-ops, 0 means it's variable + int NumMicroOps; ///< # of micro-ops, -1 means it's variable unsigned FirstStage; ///< Index of first stage in itinerary unsigned LastStage; ///< Index of last + 1 stage in itinerary unsigned FirstOperandCycle; ///< Index of first operand rd/wr @@ -318,11 +318,11 @@ public: bool isMicroCoded(unsigned ItinClassIndx) const { if (isEmpty()) return false; - return Itineraries[ItinClassIndx].NumMicroOps != 1; + int UOps = Itineraries[ItinClassIndx].NumMicroOps; + return UOps < 0 || UOps > 1; } }; - } // End llvm namespace #endif |