isl_ilp.c: set_opt: perform intersection up front
isl_ilp.c: set_opt: perform intersection up front

The original implementation postpones the intersection until
each piece in the piecewise affine expression is examined,
while the new implementation does it up front, avoiding
the need to carry around the extra domain.
The actual intersections performed in both cases are the same.
The only difference is that the results of the intersections need
to be stored throughout the isl_pw_aff_opt_val call
in the new implementation.
However, it is not clear if this would ever be an issue in practice,
especially since there do not appear to be any calls
to isl_union_set_min_multi_union_pw_aff (the only publicly
exported caller of set_opt) in the wild.

The upside is that isl_pw_aff_opt_val can be reused in the next
commit to extract out an isl_union_pw_aff_opt_val, which in turn
will be used to implement isl_union_pw_aff_{min,max}_val, which
don't need the internal intersection.

Signed-off-by: Sven Verdoolaege <235c10dd23b819f81cdc9756a251746bc184cab6@gmail.com>

inducer/isl-mirror,Meinersbur/isl,inducer/isl-mirror,PollyLabs/isl,inducer/isl-mirror,inducer/isl-mirror,Meinersbur/isl,PollyLabs/isl,Meinersbur/isl,PollyLabs/isl,PollyLabs/isl,inducer/isl-mirror,Meinersbur/isl,PollyLabs/isl