Skip to content

Commit

Permalink
[BOLT][NFC] Remove dead initialization code (#92952)
Browse files Browse the repository at this point in the history
Addressing #81441
  • Loading branch information
Pribess authored May 21, 2024
1 parent e42b799 commit 219ea26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bolt/runtime/instr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,6 @@ void Graph::computeEdgeFrequencies(const uint64_t *Counters,
continue;

assert(SpanningTreeNodes[Cur].NumInEdges == 1, "must have 1 parent");
const uint32_t Parent = SpanningTreeNodes[Cur].InEdges[0].Node;
const uint32_t ParentEdge = SpanningTreeNodes[Cur].InEdges[0].ID;

// Calculate parent edge freq.
Expand Down Expand Up @@ -1464,9 +1463,8 @@ void visitCallFlowEntry(CallFlowHashTable::MapEntry &Entry, int FD,
int openProfile() {
// Build the profile name string by appending our PID
char Buf[BufSize];
char *Ptr = Buf;
uint64_t PID = __getpid();
Ptr = strCopy(Buf, __bolt_instr_filename, BufSize);
char *Ptr = strCopy(Buf, __bolt_instr_filename, BufSize);
if (__bolt_instr_use_pid) {
Ptr = strCopy(Ptr, ".", BufSize - (Ptr - Buf + 1));
Ptr = intToStr(Ptr, PID, 10);
Expand Down

0 comments on commit 219ea26

Please sign in to comment.