diff options
Diffstat (limited to 'llvm/tools/llvm-mca/Dispatch.h')
-rw-r--r-- | llvm/tools/llvm-mca/Dispatch.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/Dispatch.h b/llvm/tools/llvm-mca/Dispatch.h index 66ac2f7e64a..b342976db27 100644 --- a/llvm/tools/llvm-mca/Dispatch.h +++ b/llvm/tools/llvm-mca/Dispatch.h @@ -233,7 +233,7 @@ class DispatchUnit { // stored into a vector `DispatchStall` which is always of size DS_LAST. std::vector<unsigned> DispatchStalls; - bool checkRAT(const InstrDesc &Desc); + bool checkRAT(const Instruction &Desc); bool checkRCU(const InstrDesc &Desc); bool checkScheduler(const InstrDesc &Desc); @@ -260,9 +260,10 @@ public: bool isRCUEmpty() const { return RCU->isEmpty(); } - bool canDispatch(const InstrDesc &Desc) { + bool canDispatch(const Instruction &Inst) { + const InstrDesc &Desc = Inst.getDesc(); assert(isAvailable(Desc.NumMicroOps)); - return checkRCU(Desc) && checkRAT(Desc) && checkScheduler(Desc); + return checkRCU(Desc) && checkRAT(Inst) && checkScheduler(Desc); } unsigned dispatch(unsigned IID, Instruction *NewInst, |