From 7d93ec3984374378633e8b47eabd50483ab4a17e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 27 Feb 2024 17:22:04 -0800 Subject: [PATCH] Address review comments --- frontends/p4/simplifyDefUse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/p4/simplifyDefUse.cpp b/frontends/p4/simplifyDefUse.cpp index cedf51c5ade..c72a5d050ad 100644 --- a/frontends/p4/simplifyDefUse.cpp +++ b/frontends/p4/simplifyDefUse.cpp @@ -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 { @@ -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 used; + absl::flat_hash_set 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) {