]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rose: only use anch history when there are bounds
authorJustin Viiret <justin.viiret@intel.com>
Mon, 11 Jul 2016 01:44:57 +0000 (11:44 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 10 Aug 2016 04:57:36 +0000 (14:57 +1000)
src/rose/rose_build_compile.cpp

index d59d4d4f951f5e8ae60ef23f4a8711cfaacc6b14..472de156e7cd46c07ef91b644c65e5825a01932a 100644 (file)
@@ -453,7 +453,8 @@ RoseRoleHistory findHistoryScheme(const RoseBuildImpl &tbi, const RoseEdge &e) {
         return ROSE_ROLE_HISTORY_NONE;
     }
 
-    if (g[u].fixedOffset()) {
+    if (g[u].fixedOffset() &&
+        (g[e].minBound || g[e].maxBound != ROSE_BOUND_INF)) {
         DEBUG_PRINTF("fixed offset -> anch\n");
         return ROSE_ROLE_HISTORY_ANCH;
     }