Skip to content

Commit cbbfbdc

Browse files
pratikasharigcbot
authored andcommitted
Changes in code.
1 parent 8dd709c commit cbbfbdc

15 files changed

+371
-1540
lines changed

visa/FlowGraph.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4622,18 +4622,18 @@ void RelocationEntry::dump(std::ostream &os) const {
46224622
os << " symbol = " << symName << "; src" << opndPos << "\n";
46234623
}
46244624

4625-
void FuncInfo::dump(std::ostream &os) const {
4626-
os << "subroutine " << getId() << "("
4625+
void FuncInfo::dump() const {
4626+
std::cerr << "subroutine " << getId() << "("
46274627
<< getInitBB()->front()->getLabelStr() << ")\n";
4628-
os << "\tentryBB=" << getInitBB()->getId()
4628+
std::cerr << "\tentryBB=" << getInitBB()->getId()
46294629
<< ", exitBB=" << getExitBB()->getId() << "\n";
4630-
os << "\tCallees: ";
4630+
std::cerr << "\tCallees: ";
46314631
for (auto callee : callees) {
4632-
os << callee->getId() << " ";
4632+
std::cerr << callee->getId() << " ";
46334633
}
4634-
os << "\n\tBB list: ";
4634+
std::cerr << "\n\tBB list: ";
46354635
for (auto bb : BBList) {
4636-
os << bb->getId() << " ";
4636+
std::cerr << bb->getId() << " ";
46374637
}
4638-
os << "\n";
4638+
std::cerr << "\n";
46394639
}

visa/FlowGraph.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ class FuncInfo {
8888
void addCallee(FuncInfo *fn) { callees.push_back(fn); }
8989
std::list<FuncInfo *> &getCallees() { return callees; }
9090

91-
// const version that does O(n) lookup.
92-
bool contains(G4_BB *bb) const {
93-
auto it = std::find(BBList.begin(), BBList.end(), bb);
94-
return it != BBList.end();
95-
}
96-
9791
bool contains(G4_BB *bb) {
9892
if (BBSet.size() != BBList.size()) {
9993
BBSet.clear();
@@ -126,7 +120,7 @@ class FuncInfo {
126120
unsigned getPostID() const { return postID; }
127121
void setPostID(unsigned id) { postID = id; }
128122

129-
void dump(std::ostream &os = std::cerr) const;
123+
void dump() const;
130124
}; // FuncInfo
131125

132126
//

0 commit comments

Comments
 (0)