forked from OSchip/llvm-project
ScheduleOptimizer: Use early exit
Style fix, noted by Sebastian Pop. llvm-svn: 144898
This commit is contained in:
parent
74793710c1
commit
79b30201d6
|
@ -207,7 +207,9 @@ isl_union_map *getTiledPartialSchedule(isl_band *band) {
|
||||||
|
|
||||||
partialSchedule = isl_band_get_partial_schedule(band);
|
partialSchedule = isl_band_get_partial_schedule(band);
|
||||||
|
|
||||||
if (!DisableTiling) {
|
if (DisableTiling)
|
||||||
|
return partialSchedule;
|
||||||
|
|
||||||
ctx = isl_union_map_get_ctx(partialSchedule);
|
ctx = isl_union_map_get_ctx(partialSchedule);
|
||||||
Space = isl_union_map_get_space(partialSchedule);
|
Space = isl_union_map_get_space(partialSchedule);
|
||||||
scheduleDimensions = isl_band_n_member(band);
|
scheduleDimensions = isl_band_n_member(band);
|
||||||
|
@ -215,10 +217,7 @@ isl_union_map *getTiledPartialSchedule(isl_band *band) {
|
||||||
tileMap = getTileMap(ctx, scheduleDimensions, Space);
|
tileMap = getTileMap(ctx, scheduleDimensions, Space);
|
||||||
tileUnionMap = isl_union_map_from_map(isl_map_from_basic_map(tileMap));
|
tileUnionMap = isl_union_map_from_map(isl_map_from_basic_map(tileMap));
|
||||||
tileUnionMap = isl_union_map_align_params(tileUnionMap, Space);
|
tileUnionMap = isl_union_map_align_params(tileUnionMap, Space);
|
||||||
partialSchedule = isl_union_map_apply_range(partialSchedule, tileUnionMap);
|
return isl_union_map_apply_range(partialSchedule, tileUnionMap);
|
||||||
}
|
|
||||||
|
|
||||||
return partialSchedule;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static isl_map *getPrevectorMap(isl_ctx *ctx, int vectorDimension,
|
static isl_map *getPrevectorMap(isl_ctx *ctx, int vectorDimension,
|
||||||
|
|
Loading…
Reference in New Issue