isl_ast_node_set_annotation: reuse isl_ast_node_*_set_*
commit0c17c001345c587e7b653c65fdbd1630e64e2ea0
authorSven Verdoolaege <sven@cerebras.net>
Fri, 4 Feb 2022 10:37:56 +0000 (4 11:37 +0100)
committerSven Verdoolaege <sven@cerebras.net>
Sat, 31 Dec 2022 09:19:18 +0000 (31 10:19 +0100)
tree8ce85f8bbd86cf7cdcd4006a3affd5860dd7ce31
parent775d270fdbe2a0b88e7e655904c903d352a0cda4
isl_ast_node_set_annotation: reuse isl_ast_node_*_set_*

Now that a generic isl_ast_node_*_set_* is available,
it can also be used for isl_ast_node_set_annotation,
which now also optimizes the case where the annotation
is replaced by itself.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
isl_ast.c