diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-29 03:23:22 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-29 03:23:22 +0000 |
commit | 7f8c74cfaebb4b58b283a1875d3205704ce5be07 (patch) | |
tree | 77fa314f9027e3e231110c3dd83f4a0dc192f20d /include/llvm/MC | |
parent | 0d9513c74f3e4c019406273cce49e43508dc4dcf (diff) | |
download | external_llvm-7f8c74cfaebb4b58b283a1875d3205704ce5be07.zip external_llvm-7f8c74cfaebb4b58b283a1875d3205704ce5be07.tar.gz external_llvm-7f8c74cfaebb4b58b283a1875d3205704ce5be07.tar.bz2 |
misched: count micro-ops toward the issue limit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCInstrItineraries.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/MC/MCInstrItineraries.h b/include/llvm/MC/MCInstrItineraries.h index 48316d0..d858706 100644 --- a/include/llvm/MC/MCInstrItineraries.h +++ b/include/llvm/MC/MCInstrItineraries.h @@ -313,13 +313,13 @@ public: return UseCycle; } - /// isMicroCoded - Return true if the instructions in the given class decode - /// to more than one micro-ops. - bool isMicroCoded(unsigned ItinClassIndx) const { + /// getNumMicroOps - Return the number of micro-ops that the given class + /// decodes to. Return -1 for classes that require dynamic lookup via + /// TargetInstrInfo. + int getNumMicroOps(unsigned ItinClassIndx) const { if (isEmpty()) - return false; - int UOps = Itineraries[ItinClassIndx].NumMicroOps; - return UOps < 0 || UOps > 1; + return 1; + return Itineraries[ItinClassIndx].NumMicroOps; } }; |