diff options
Diffstat (limited to 'llvm/tools/llvm-mca/Instruction.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/Instruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/Instruction.cpp b/llvm/tools/llvm-mca/Instruction.cpp index dbf2d5ffecf..53f0d67bf77 100644 --- a/llvm/tools/llvm-mca/Instruction.cpp +++ b/llvm/tools/llvm-mca/Instruction.cpp @@ -41,7 +41,7 @@ void ReadState::writeStartEvent(unsigned Cycles) { void WriteState::onInstructionIssued() { assert(CyclesLeft == UNKNOWN_CYCLES); // Update the number of cycles left based on the WriteDescriptor info. - CyclesLeft = WD.Latency; + CyclesLeft = getLatency(); // Now that the time left before write-back is known, notify // all the users. @@ -93,7 +93,7 @@ void ReadState::cycleEvent() { #ifndef NDEBUG void WriteState::dump() const { - dbgs() << "{ OpIdx=" << WD.OpIndex << ", Lat=" << WD.Latency << ", RegID " + dbgs() << "{ OpIdx=" << WD.OpIndex << ", Lat=" << getLatency() << ", RegID " << getRegisterID() << ", Cycles Left=" << getCyclesLeft() << " }"; } |