Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Feb 28, 2024
1 parent 2a369ea commit 7d93ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/p4/simplifyDefUse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
#include "frontends/p4/sideEffects.h"
#include "frontends/p4/tableApply.h"
#include "frontends/p4/ternaryBool.h"
#include "lib/hash.h"

namespace P4 {

Expand All @@ -31,10 +32,9 @@ namespace {
class HasUses {
// Set of program points whose left-hand sides are used elsewhere
// in the program together with their use count
absl::flat_hash_set<const IR::Node *> used;
absl::flat_hash_set<const IR::Node *, Util::Hash> used;

class SliceTracker {
// FIXME: Can squeeze this bool into lower bit of pointer
const IR::Slice *trackedSlice = nullptr;
bool active = false;
bool overwritesPrevious(const IR::Slice *previous) {
Expand Down

0 comments on commit 7d93ec3

Please sign in to comment.