Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

JIT: remove match accounting from inliner state machine #8935

Merged
merged 1 commit into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/jit/sm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ void CodeSeqSM::Start(Compiler* comp)
void CodeSeqSM::Reset()
{
curState = SM_STATE_ID_START;

#ifdef DEBUG
// Reset the state occurence counts
memset(StateMatchedCounts, 0, sizeof(StateMatchedCounts));
#endif
}

void CodeSeqSM::End()
Expand Down
3 changes: 0 additions & 3 deletions src/jit/sm.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ class CodeSeqSM // Represent a particualr run of the state machine
inline void TermStateMatch(SM_STATE_ID stateID DEBUGARG(bool verbose))
{
assert(States[stateID].term);
assert(StateMatchedCounts[stateID] < _UI16_MAX);
#ifdef DEBUG
++StateMatchedCounts[stateID];
#ifndef SMGEN_COMPILE
if (verbose)
{
Expand All @@ -65,7 +63,6 @@ class CodeSeqSM // Represent a particualr run of the state machine
}

#ifdef DEBUG
WORD StateMatchedCounts[NUM_SM_STATES];
const char* StateDesc(SM_STATE_ID stateID);
#endif

Expand Down