summaryrefslogtreecommitdiff
path: root/llvm/lib/MCA/Instruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MCA/Instruction.cpp')
-rw-r--r--llvm/lib/MCA/Instruction.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/MCA/Instruction.cpp b/llvm/lib/MCA/Instruction.cpp
index d4adfce59713..79667080ecbb 100644
--- a/llvm/lib/MCA/Instruction.cpp
+++ b/llvm/lib/MCA/Instruction.cpp
@@ -128,6 +128,13 @@ void WriteState::dump() const {
}
#endif
+#ifndef NDEBUG
+void ReadState::dump() const {
+ dbgs() << "{ OpIdx=" << RD->OpIndex << ", RegID " << getRegisterID()
+ << ", Cycles Left=" << CyclesLeft << " }";
+}
+#endif
+
const CriticalDependency &Instruction::computeCriticalRegDep() {
if (CriticalRegDep.Cycles)
return CriticalRegDep;