diff options
Diffstat (limited to 'llvm/tools/llvm-mca/Dispatch.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/Dispatch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/Dispatch.cpp b/llvm/tools/llvm-mca/Dispatch.cpp index 33b5f4926c9..50b118b310c 100644 --- a/llvm/tools/llvm-mca/Dispatch.cpp +++ b/llvm/tools/llvm-mca/Dispatch.cpp @@ -199,7 +199,8 @@ void RetireControlUnit::dump() const { } #endif -bool DispatchUnit::checkRAT(const InstrDesc &Desc) { +bool DispatchUnit::checkRAT(const Instruction &Instr) { + const InstrDesc &Desc = Instr.getDesc(); unsigned NumWrites = Desc.Writes.size(); if (RAT->isAvailable(NumWrites)) return true; |