Alexandru Duțu has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/42202 )

Change subject: gpu-compute: Remove unused functions
......................................................................

gpu-compute: Remove unused functions

These functions were probably used for some stat collection,
but they're no longer used, so they're being removed

Change-Id: Ic99f22391c0d5ffb0e9963670efb35e503f9957d
---
M src/gpu-compute/gpu_dyn_inst.cc
M src/gpu-compute/gpu_dyn_inst.hh
2 files changed, 0 insertions(+), 37 deletions(-)



diff --git a/src/gpu-compute/gpu_dyn_inst.cc b/src/gpu-compute/gpu_dyn_inst.cc
index b827632..b9b23d4 100644
--- a/src/gpu-compute/gpu_dyn_inst.cc
+++ b/src/gpu-compute/gpu_dyn_inst.cc
@@ -268,40 +268,6 @@
     return _staticInst->executed_as;
 }

-bool
-GPUDynInst::hasVgprRawDependence(GPUDynInstPtr s)
-{
-    assert(s);
-    for (int i = 0; i < getNumOperands(); ++i) {
-        if (isVectorRegister(i) && isSrcOperand(i)) {
-            for (int j = 0; j < s->getNumOperands(); ++j) {
-                if (s->isVectorRegister(j) && s->isDstOperand(j)) {
-                    if (i == j)
-                        return true;
-                }
-            }
-        }
-    }
-    return false;
-}
-
-bool
-GPUDynInst::hasSgprRawDependence(GPUDynInstPtr s)
-{
-    assert(s);
-    for (int i = 0; i < getNumOperands(); ++i) {
-        if (isScalarRegister(i) && isSrcOperand(i)) {
-            for (int j = 0; j < s->getNumOperands(); ++j) {
-                if (s->isScalarRegister(j) && s->isDstOperand(j)) {
-                    if (i == j)
-                        return true;
-                }
-            }
-        }
-    }
-    return false;
-}
-
 // Process a memory instruction and (if necessary) submit timing request
 void
 GPUDynInst::initiateAcc(GPUDynInstPtr gpuDynInst)
diff --git a/src/gpu-compute/gpu_dyn_inst.hh b/src/gpu-compute/gpu_dyn_inst.hh
index 851a46a..97eea01 100644
--- a/src/gpu-compute/gpu_dyn_inst.hh
+++ b/src/gpu-compute/gpu_dyn_inst.hh
@@ -101,9 +101,6 @@
     bool hasDestinationVgpr() const;
     bool hasSourceVgpr() const;

-    bool hasSgprRawDependence(GPUDynInstPtr s);
-    bool hasVgprRawDependence(GPUDynInstPtr s);
-
     // returns true if the string "opcodeStr" is found in the
     // opcode of the instruction
     bool isOpcode(const std::string& opcodeStr) const;

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/42202
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ic99f22391c0d5ffb0e9963670efb35e503f9957d
Gerrit-Change-Number: 42202
Gerrit-PatchSet: 1
Gerrit-Owner: Alexandru Duțu <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to