isl_ast_build_expr_from_pw_aff: collect all pieces before construction
commita60bedc54d55e06696d301d2a846f00e9c7e370d
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 2 Mar 2016 11:15:09 +0000 (2 12:15 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 22 Mar 2016 11:51:30 +0000 (22 12:51 +0100)
treee52bd75ce2aa9b3762003c3c9f6543c8f1e77fc5
parent83ed66e3e4aae5409f801d67391099af31baa4f4
isl_ast_build_expr_from_pw_aff: collect all pieces before construction

Although isl_ast_build_expr_from_pw_aff_internal already looks for
min/max expressions, it only considers pieces in order and generates
parts of the resulting isl_ast_expr after each (sequence) of piece(s).
Collect all pieces before constructing the isl_ast_expr.
This allows the pieces to be reordered.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_build_expr.c