]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rose: remove now-unused anchored_base_id
authorJustin Viiret <justin.viiret@intel.com>
Mon, 13 Feb 2017 23:23:53 +0000 (10:23 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:04:30 +0000 (15:04 +1000)
src/rose/rose_build_bytecode.cpp
src/rose/rose_build_dump.cpp
src/rose/rose_build_impl.h
src/rose/rose_build_misc.cpp
src/rose/rose_internal.h

index c050e6839265df89c7c9c013131f010edff9d4a6..b22f9149c389d5896c94ef0285da256148e157ce 100644 (file)
@@ -5293,7 +5293,6 @@ void allocateFinalLiteralId(RoseBuildImpl &build, build_context &bc) {
     allocateFinalIdToSet(build, bc, norm, &next_final_id);
 
     /* next anchored stuff */
-    build.anchored_base_id = next_final_id;
     allocateFinalIdToSet(build, bc, anch, &next_final_id);
 
     /* delayed ids come last */
@@ -5716,7 +5715,6 @@ aligned_unique_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
         verify_u32(bc.final_id_to_literal.size() - delay_base_id);
     engine->delay_fatbit_size = fatbit_size(engine->delay_count);
     engine->delay_base_id = delay_base_id;
-    engine->anchored_base_id = anchored_base_id;
     engine->anchored_count = bc.anchored_programs.size();
     engine->anchored_fatbit_size = fatbit_size(engine->anchored_count);
 
index 92a3935bc686012cd6344230420469101c71b968..45fa7ece10bda2e4908211c270534c0194b9283e 100644 (file)
@@ -1821,7 +1821,6 @@ void roseDumpStructRaw(const RoseEngine *t, FILE *f) {
     DUMP_U32(t, delay_base_id);
     DUMP_U32(t, anchored_count);
     DUMP_U32(t, anchored_fatbit_size);
-    DUMP_U32(t, anchored_base_id);
     DUMP_U32(t, maxFloatingDelayedMatch);
     DUMP_U32(t, delayRebuildLength);
     DUMP_U32(t, stateOffsets.history);
index 321f54d829234908df76c541ec1c8a2161b94eb1..6da80c98e6cfe888c2f821563bc9f707f2abab4b 100644 (file)
@@ -578,8 +578,6 @@ public:
     std::map<u32, std::set<u32> > group_to_literal;
     u32 group_end;
 
-    u32 anchored_base_id;
-
     u32 ematcher_region_size; /**< number of bytes the eod table runs over */
 
     /** \brief Mapping from leftfix to queue ID (used in dump code). */
index 549cc4f1cca1a1f585ef8b85fff01ac36359cd07..3eca20c579e2c0cbb18e644940a5867385440345 100644 (file)
@@ -78,7 +78,6 @@ RoseBuildImpl::RoseBuildImpl(ReportManager &rm_in,
       delay_base_id(MO_INVALID_IDX),
       hasSom(false),
       group_end(0),
-      anchored_base_id(MO_INVALID_IDX),
       ematcher_region_size(0),
       eod_event_literal_id(MO_INVALID_IDX),
       max_rose_anchored_floating_overlap(0),
index 9ef8b0a1660bc16f5176f071773eab6a2deacce0..ff3dd7262643a43262b6bbeaa54d3d5ba6c2f2fb 100644 (file)
@@ -421,8 +421,6 @@ struct RoseEngine {
                         * delayed literal ids are contiguous */
     u32 anchored_count; /* number of anchored literal ids */
     u32 anchored_fatbit_size; //!< size of each anch fatbit in scratch (bytes)
-    u32 anchored_base_id; /* literal id of the first literal in the A table.
-                           * anchored literal ids are contiguous */
     u32 maxFloatingDelayedMatch; /* max offset that a delayed literal can
                                   * usefully be reported */
     u32 delayRebuildLength; /* length of the history region which needs to be