]> Nishi Git Mirror - gwion.git/commitdiff
:art: Put memoize pragma inside function
authorJérémie Astor <fennecdjay@gmail.com>
Wed, 21 Jul 2021 16:53:57 +0000 (18:53 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Wed, 21 Jul 2021 16:53:57 +0000 (18:53 +0200)
src/emit/emit.c

index c10167d6953220f5778f94f952b7c471fadaf85f..f1ee3c5e83cca8ead2d1003d75f4ea007cfee751 100644 (file)
@@ -2461,9 +2461,7 @@ ANN static m_bool emit_stmt_match(const Emitter             emit,
 ANN static m_bool emit_stmt_pp(const Emitter          emit,
                                const struct Stmt_PP_ *stmt) {
   if (stmt->pp_type == ae_pp_pragma) {
-    if (!strncmp(stmt->data, "memoize", strlen("memoize")))
-      emit->info->memoize = strtol(stmt->data + 7, NULL, 10);
-    else if (!strncmp(stmt->data, "unroll", strlen("unroll")))
+    if (!strncmp(stmt->data, "unroll", strlen("unroll")))
       emit->info->unroll = strtol(stmt->data + 6, NULL, 10);
   } else if (stmt->pp_type == ae_pp_include)
     emit->env->name = stmt->data;